1 | <?php |
||
29 | final class Reader implements ReaderInterface |
||
30 | { |
||
31 | const SECTIONS = 'sections'; |
||
32 | const ARRAYS = 'asArrays'; |
||
33 | const THUMBNAILINFO = 'thumbnailInfo'; |
||
34 | const WITHIPTC = 'withIptc'; |
||
35 | |||
36 | /** |
||
37 | * @var MapperInterface |
||
38 | */ |
||
39 | private $mapper; |
||
40 | |||
41 | /** |
||
42 | * @var string |
||
43 | */ |
||
44 | private $sections; |
||
45 | |||
46 | /** |
||
47 | * @var boolean |
||
48 | */ |
||
49 | private $asArrays; |
||
50 | |||
51 | /** |
||
52 | * @var boolean |
||
53 | */ |
||
54 | private $thumbnailInfo; |
||
55 | |||
56 | /** |
||
57 | * @var boolean |
||
58 | */ |
||
59 | private $withIptc; |
||
60 | |||
61 | /** |
||
62 | * @param MapperInterface $mapper |
||
63 | * @param array $config |
||
64 | */ |
||
65 | public function __construct( |
||
85 | |||
86 | /** |
||
87 | * {@inheritDoc} |
||
88 | */ |
||
89 | public function getMapper() |
||
93 | |||
94 | /** |
||
95 | * {@inheritDoc} |
||
96 | */ |
||
97 | public function getMetadataFromFile($filePath) |
||
124 | |||
125 | /** |
||
126 | * Lowercases the keys for given array |
||
127 | * |
||
128 | * @param array $data |
||
129 | * |
||
130 | * @return array |
||
131 | */ |
||
132 | private function normalizeArrayKeys(array $data) |
||
150 | |||
151 | /** |
||
152 | * Adds data from iptcparse to the original raw EXIF data |
||
153 | * |
||
154 | * @param string $filePath |
||
155 | * @param array $data |
||
156 | * |
||
157 | * @return void |
||
158 | */ |
||
159 | private function augmentDataWithIptcRawData($filePath, array &$data) |
||
184 | } |
||
185 |