1 | <?php |
||
12 | class Sitemap implements OutputInterface |
||
13 | { |
||
14 | /** |
||
15 | * Location (URL). |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $loc; |
||
20 | |||
21 | /** |
||
22 | * Last modified time. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $lastMod; |
||
27 | |||
28 | /** |
||
29 | * Url constructor |
||
30 | * |
||
31 | * @param string $loc |
||
32 | */ |
||
33 | public function __construct($loc) |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function generateXML(XMLWriter $XMLWriter) |
||
52 | |||
53 | /** |
||
54 | * Get location (URL). |
||
55 | * |
||
56 | * @return string |
||
57 | */ |
||
58 | public function getLoc() |
||
62 | |||
63 | /** |
||
64 | * Get the last modification time. |
||
65 | * |
||
66 | * @return string|null |
||
67 | */ |
||
68 | public function getLastMod() |
||
72 | |||
73 | /** |
||
74 | * Set the last modification time. |
||
75 | * |
||
76 | * @param string $lastMod |
||
77 | * |
||
78 | * @return $this |
||
79 | */ |
||
80 | public function setLastMod($lastMod) |
||
86 | } |
||
87 |