1 | <?php |
||
28 | class Iptc implements IptcInterface |
||
29 | { |
||
30 | /** |
||
31 | * @var Caption |
||
32 | */ |
||
33 | protected $caption; |
||
34 | |||
35 | /** |
||
36 | * @var Copyright |
||
37 | */ |
||
38 | protected $copyright; |
||
39 | |||
40 | /** |
||
41 | * @var Credit |
||
42 | */ |
||
43 | protected $credit; |
||
44 | |||
45 | /** |
||
46 | * @var Headline |
||
47 | */ |
||
48 | protected $headline; |
||
49 | |||
50 | /** |
||
51 | * @var Title |
||
52 | */ |
||
53 | protected $title; |
||
54 | |||
55 | /** |
||
56 | * Contains the mapping of names to IPTC field numbers |
||
57 | * |
||
58 | * @var array |
||
59 | */ |
||
60 | public static $iptcMapping = array( |
||
61 | 'jobtitle' => '2#085', |
||
62 | 'keywords' => '2#025', |
||
63 | 'source' => '2#115', |
||
64 | 'title' => '2#005', |
||
65 | ); |
||
66 | |||
67 | /** |
||
68 | * {@inheritDoc} |
||
69 | */ |
||
70 | public function getHeadline() |
||
74 | |||
75 | /** |
||
76 | * {@inheritDoc} |
||
77 | */ |
||
78 | public function withHeadline(Headline $headline) |
||
85 | |||
86 | /** |
||
87 | * {@inheritDoc} |
||
88 | */ |
||
89 | public function getCredit() |
||
93 | |||
94 | /** |
||
95 | * {@inheritDoc} |
||
96 | */ |
||
97 | public function withCredit(Credit $credit) |
||
104 | |||
105 | /** |
||
106 | * {@inheritDoc} |
||
107 | */ |
||
108 | public function getCopyright() |
||
112 | |||
113 | /** |
||
114 | * {@inheritDoc} |
||
115 | */ |
||
116 | public function withCopyright(Copyright $copyright) |
||
123 | |||
124 | /** |
||
125 | * {@inheritDoc} |
||
126 | */ |
||
127 | public function getCaption() |
||
131 | |||
132 | /** |
||
133 | * {@inheritDoc} |
||
134 | */ |
||
135 | public function withCaption(Caption $caption) |
||
142 | |||
143 | /** |
||
144 | * {@inheritDoc} |
||
145 | */ |
||
146 | public function getTitle() |
||
150 | |||
151 | /** |
||
152 | * {@inheritDoc} |
||
153 | */ |
||
154 | public function withTitle(Title $title) |
||
161 | } |
||
162 |