1 | <?php |
||
28 | class BasicStringFieldMapper implements FieldMapper |
||
29 | { |
||
30 | /** |
||
31 | * @var array |
||
32 | */ |
||
33 | protected $map = [ |
||
34 | Caption::class => [ |
||
35 | 'inputField' => '2#120', |
||
36 | 'method' => 'withCaption', |
||
37 | ], |
||
38 | Copyright::class => [ |
||
39 | 'inputField' => '2#116', |
||
40 | 'method' => 'withCopyright', |
||
41 | ], |
||
42 | Credit::class => [ |
||
43 | 'inputField' => '2#110', |
||
44 | 'method' => 'withCredit', |
||
45 | ], |
||
46 | Headline::class => [ |
||
47 | 'inputField' => '2#105', |
||
48 | 'method' => 'withHeadline', |
||
49 | ], |
||
50 | Title::class => [ |
||
51 | 'inputField' => '2#005', |
||
52 | 'method' => 'withTitle', |
||
53 | ], |
||
54 | ]; |
||
55 | |||
56 | use GuardInvalidArgumentsTrait; |
||
57 | |||
58 | /** |
||
59 | * {@inheritDoc} |
||
60 | */ |
||
61 | public function getSupportedFields() |
||
71 | |||
72 | /** |
||
73 | * {@inheritDoc} |
||
74 | */ |
||
75 | public function mapField($field, array $input, &$output) |
||
94 | } |
||
95 |