1 | <?php |
||
29 | class Iptc implements IptcInterface |
||
30 | { |
||
31 | /** |
||
32 | * @var Caption |
||
33 | */ |
||
34 | protected $caption; |
||
35 | |||
36 | /** |
||
37 | * @var Copyright |
||
38 | */ |
||
39 | protected $copyright; |
||
40 | |||
41 | /** |
||
42 | * @var Credit |
||
43 | */ |
||
44 | protected $credit; |
||
45 | |||
46 | /** |
||
47 | * @var Headline |
||
48 | */ |
||
49 | protected $headline; |
||
50 | |||
51 | /** |
||
52 | * @var Title |
||
53 | */ |
||
54 | protected $title; |
||
55 | |||
56 | /** |
||
57 | * @var Collection |
||
58 | */ |
||
59 | protected $keywords; |
||
60 | |||
61 | /** |
||
62 | * Contains the mapping of names to IPTC field numbers |
||
63 | * |
||
64 | * @var array |
||
65 | */ |
||
66 | public static $iptcMapping = array( |
||
67 | 'jobtitle' => '2#085', |
||
68 | 'keywords' => '2#025', |
||
69 | 'source' => '2#115', |
||
70 | ); |
||
71 | |||
72 | /** |
||
73 | * {@inheritDoc} |
||
74 | */ |
||
75 | public function getHeadline() |
||
79 | |||
80 | /** |
||
81 | * {@inheritDoc} |
||
82 | */ |
||
83 | public function withHeadline(Headline $headline) |
||
90 | |||
91 | /** |
||
92 | * {@inheritDoc} |
||
93 | */ |
||
94 | public function getCredit() |
||
98 | |||
99 | /** |
||
100 | * {@inheritDoc} |
||
101 | */ |
||
102 | public function withCredit(Credit $credit) |
||
109 | |||
110 | /** |
||
111 | * {@inheritDoc} |
||
112 | */ |
||
113 | public function getCopyright() |
||
117 | |||
118 | /** |
||
119 | * {@inheritDoc} |
||
120 | */ |
||
121 | public function withCopyright(Copyright $copyright) |
||
128 | |||
129 | /** |
||
130 | * {@inheritDoc} |
||
131 | */ |
||
132 | public function getCaption() |
||
136 | |||
137 | /** |
||
138 | * {@inheritDoc} |
||
139 | */ |
||
140 | public function withCaption(Caption $caption) |
||
147 | |||
148 | /** |
||
149 | * {@inheritDoc} |
||
150 | */ |
||
151 | public function getTitle() |
||
155 | |||
156 | /** |
||
157 | * {@inheritDoc} |
||
158 | */ |
||
159 | public function withTitle(Title $title) |
||
166 | |||
167 | /** |
||
168 | * {@inheritDoc} |
||
169 | */ |
||
170 | public function getKeywords() |
||
174 | |||
175 | /** |
||
176 | * {@inheritDoc} |
||
177 | */ |
||
178 | public function withKeywords(Collection $keywords) |
||
185 | } |
||
186 |