1 | <?php |
||
16 | class CallbackFormDataToObjectConverter implements FormDataToObjectConverterInterface |
||
17 | { |
||
18 | /** |
||
19 | * The callable used to map form data to an object. |
||
20 | * |
||
21 | * @var callable |
||
22 | */ |
||
23 | private $converter; |
||
24 | |||
25 | /** |
||
26 | * @param callable $converter |
||
27 | */ |
||
28 | public function __construct(callable $converter) |
||
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | public function convertFormDataToObject(array $data, $originalData) |
||
40 | } |
||
41 |