1 | <?php |
||
21 | class Image extends Extension |
||
22 | { |
||
23 | /** |
||
24 | * Name of Namescapce |
||
25 | */ |
||
26 | const NAMESPACE_NAME = 'image'; |
||
27 | |||
28 | /** |
||
29 | * Namespace URL |
||
30 | */ |
||
31 | const NAMESPACE_URL = 'http://www.google.com/schemas/sitemap-image/1.1'; |
||
32 | |||
33 | /** |
||
34 | * Element name |
||
35 | */ |
||
36 | const ELEMENT_NAME = 'image'; |
||
37 | |||
38 | /** |
||
39 | * Location |
||
40 | * |
||
41 | * @var \Wszetko\Sitemap\Items\DataTypes\URLType |
||
42 | */ |
||
43 | protected $loc; |
||
44 | |||
45 | /** |
||
46 | * The caption of the image. |
||
47 | * |
||
48 | * @var \Wszetko\Sitemap\Items\DataTypes\StringType |
||
49 | */ |
||
50 | protected $caption; |
||
51 | |||
52 | /** |
||
53 | * The geographic location of the image. |
||
54 | * |
||
55 | * @var \Wszetko\Sitemap\Items\DataTypes\StringType |
||
56 | */ |
||
57 | protected $geoLocation; |
||
58 | |||
59 | /** |
||
60 | * The title of the image. |
||
61 | * |
||
62 | * @var \Wszetko\Sitemap\Items\DataTypes\StringType |
||
63 | */ |
||
64 | protected $title; |
||
65 | |||
66 | /** |
||
67 | * A URL to the license of the image. |
||
68 | * |
||
69 | * @var \Wszetko\Sitemap\Items\DataTypes\ExternalURLType |
||
70 | */ |
||
71 | protected $license; |
||
72 | |||
73 | /** |
||
74 | * Image constructor |
||
75 | * |
||
76 | * @param string $loc |
||
77 | * |
||
78 | * @throws \ReflectionException |
||
79 | */ |
||
80 | 7 | public function __construct(string $loc) |
|
87 | } |
||
88 |