1 | <?php |
||
25 | class ResolutionFieldMapper implements FieldMapper |
||
26 | { |
||
27 | /** |
||
28 | * @var array |
||
29 | */ |
||
30 | protected $map = [ |
||
31 | HorizontalResolution::class => [ |
||
32 | 'dataField' => 'XResolution', |
||
33 | 'method' => 'withHorizontalResolution', |
||
34 | ], |
||
35 | VerticalResolution::class => [ |
||
36 | 'dataField' => 'YResolution', |
||
37 | 'method' => 'withVerticalResolution', |
||
38 | ], |
||
39 | ]; |
||
40 | |||
41 | use GuardInvalidArgumentsTrait; |
||
42 | |||
43 | /** |
||
44 | * {@inheritDoc} |
||
45 | */ |
||
46 | public function getSupportedFields() |
||
53 | |||
54 | /** |
||
55 | * {@inheritDoc} |
||
56 | */ |
||
57 | public function mapField($field, array $input, &$output) |
||
73 | } |
||
74 |