File size: 615 Bytes
d2897cd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php

declare(strict_types=1);

namespace Mautic\FormBundle\Collector;

interface AlreadyMappedFieldCollectorInterface
{
    /**
     * @param string $formId can be a string hash for new forms
     *
     * @return mixed[]
     */
    public function getFields(string $formId, string $object): array;

    public function addField(string $formId, string $object, string $fieldKey): void;

    public function removeField(string $formId, string $object, string $fieldKey): void;

    /**
     * Removes all mapped fields for the specified form.
     */
    public function removeAllForForm(string $formId): void;
}