1 | <?php |
||
24 | class Metadata implements MetadataInterface, JsonSerializable |
||
25 | { |
||
26 | /** |
||
27 | * @var ExifInterface |
||
28 | */ |
||
29 | protected $exif; |
||
30 | |||
31 | /** |
||
32 | * @var IptcInterface |
||
33 | */ |
||
34 | protected $iptc; |
||
35 | |||
36 | /** |
||
37 | * @var array |
||
38 | */ |
||
39 | protected $rawData = []; |
||
40 | |||
41 | /** |
||
42 | * Constructor |
||
43 | * |
||
44 | * @param ExifInterface $exif |
||
45 | * @param IptcInterface $iptc |
||
46 | */ |
||
47 | public function __construct(ExifInterface $exif, IptcInterface $iptc) |
||
52 | |||
53 | /** |
||
54 | * {@inheritDoc} |
||
55 | */ |
||
56 | public function setRawData(array $data) |
||
60 | |||
61 | /** |
||
62 | * {@inheritDoc} |
||
63 | */ |
||
64 | public function getRawData() |
||
68 | |||
69 | /** |
||
70 | * {@inheritDoc} |
||
71 | */ |
||
72 | public function withExif(ExifInterface $exif) |
||
79 | |||
80 | /** |
||
81 | * {@inheritDoc} |
||
82 | */ |
||
83 | public function withIptc(IptcInterface $iptc) |
||
90 | |||
91 | /** |
||
92 | * {@inheritDoc} |
||
93 | */ |
||
94 | public function getExif() |
||
98 | |||
99 | /** |
||
100 | * {@inheritDoc} |
||
101 | */ |
||
102 | public function getIptc() |
||
106 | |||
107 | /** |
||
108 | * @inheritDoc |
||
109 | * |
||
110 | * @return array |
||
111 | */ |
||
112 | public function jsonSerialize() |
||
119 | } |
||
120 |