1 | <?php |
||
14 | class Image implements OutputInterface, AppendAttributeInterface |
||
15 | { |
||
16 | /** |
||
17 | * Location (URL). |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $loc; |
||
22 | |||
23 | /** |
||
24 | * The caption of the image. |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $caption; |
||
29 | |||
30 | /** |
||
31 | * The geographic location of the image. |
||
32 | * |
||
33 | * @var string |
||
34 | */ |
||
35 | protected $geoLocation; |
||
36 | |||
37 | /** |
||
38 | * The title of the image. |
||
39 | * |
||
40 | * @var string |
||
41 | */ |
||
42 | protected $title; |
||
43 | |||
44 | /** |
||
45 | * A URL to the license of the image. |
||
46 | * |
||
47 | * @var string |
||
48 | */ |
||
49 | protected $license; |
||
50 | |||
51 | /** |
||
52 | * Image constructor |
||
53 | * |
||
54 | * @param string $loc |
||
55 | */ |
||
56 | public function __construct($loc) |
||
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | public function generateXML(XMLWriter $XMLWriter) |
||
76 | |||
77 | /** |
||
78 | * Location (URL). |
||
79 | * |
||
80 | * @return string |
||
81 | */ |
||
82 | public function getLoc() |
||
86 | |||
87 | /** |
||
88 | * @param XMLWriter $XMLWriter |
||
89 | * @param string $name |
||
90 | * @param string $value |
||
91 | */ |
||
92 | protected function optionalWriteElement(XMLWriter $XMLWriter, $name, $value) |
||
98 | |||
99 | /** |
||
100 | * The caption of the image. |
||
101 | * |
||
102 | * @return string |
||
103 | */ |
||
104 | public function getCaption() |
||
108 | |||
109 | /** |
||
110 | * Set the caption of the image. |
||
111 | * |
||
112 | * @param string $caption |
||
113 | * |
||
114 | * @return $this |
||
115 | */ |
||
116 | public function setCaption($caption) |
||
122 | |||
123 | /** |
||
124 | * The geographic location of the image. |
||
125 | * |
||
126 | * @return string |
||
127 | */ |
||
128 | public function getGeoLocation() |
||
132 | |||
133 | /** |
||
134 | * Set the geographic location of the image. |
||
135 | * |
||
136 | * @param string $geoLocation |
||
137 | * |
||
138 | * @return $this |
||
139 | */ |
||
140 | public function setGeoLocation($geoLocation) |
||
146 | |||
147 | /** |
||
148 | * The title of the image. |
||
149 | * |
||
150 | * @return string |
||
151 | */ |
||
152 | public function getTitle() |
||
156 | |||
157 | /** |
||
158 | * Set the title of the image. |
||
159 | * |
||
160 | * @param string $title |
||
161 | * |
||
162 | * @return $this |
||
163 | */ |
||
164 | public function setTitle($title) |
||
170 | |||
171 | /** |
||
172 | * A URL to the license of the image. |
||
173 | * |
||
174 | * @return string |
||
175 | */ |
||
176 | public function getLicense() |
||
180 | |||
181 | /** |
||
182 | * Set a URL to the license of the image. |
||
183 | * |
||
184 | * @param string $license |
||
185 | * |
||
186 | * @return $this |
||
187 | */ |
||
188 | public function setLicense($license) |
||
194 | |||
195 | /** |
||
196 | * {@inheritdoc} |
||
197 | */ |
||
198 | public function appendAttributeToCollectionXML(XMLWriter $XMLWriter) |
||
202 | } |
||
203 |