1 | <?php |
||
31 | class BasicStringFieldMapper implements FieldMapper |
||
32 | { |
||
33 | /** |
||
34 | * @var array |
||
35 | */ |
||
36 | protected $map = [ |
||
37 | Caption::class => [ |
||
38 | 'inputField' => '2#120', |
||
39 | 'method' => 'withCaption', |
||
40 | ], |
||
41 | Copyright::class => [ |
||
42 | 'inputField' => '2#116', |
||
43 | 'method' => 'withCopyright', |
||
44 | ], |
||
45 | Credit::class => [ |
||
46 | 'inputField' => '2#110', |
||
47 | 'method' => 'withCredit', |
||
48 | ], |
||
49 | Headline::class => [ |
||
50 | 'inputField' => '2#105', |
||
51 | 'method' => 'withHeadline', |
||
52 | ], |
||
53 | Jobtitle::class => [ |
||
54 | 'inputField' => '2#085', |
||
55 | 'method' => 'withJobtitle', |
||
56 | ], |
||
57 | Source::class => [ |
||
58 | 'inputField' => '2#115', |
||
59 | 'method' => 'withSource', |
||
60 | ], |
||
61 | Title::class => [ |
||
62 | 'inputField' => '2#005', |
||
63 | 'method' => 'withTitle', |
||
64 | ], |
||
65 | ]; |
||
66 | |||
67 | use GuardInvalidArgumentsForIptcTrait; |
||
68 | |||
69 | /** |
||
70 | * {@inheritDoc} |
||
71 | */ |
||
72 | public function getSupportedFields() |
||
84 | |||
85 | /** |
||
86 | * {@inheritDoc} |
||
87 | */ |
||
88 | public function mapField($field, array $input, &$output) |
||
107 | } |
||
108 |