@@ -32,6 +32,10 @@ |
||
32 | 32 | class Description |
33 | 33 | { |
34 | 34 | |
35 | + /** |
|
36 | + * @param \DOMDocument $dom |
|
37 | + * @param \DOMXPath $xpath |
|
38 | + */ |
|
35 | 39 | public function parse($dom, $xpath) |
36 | 40 | { |
37 | 41 | $result = $xpath->query('//div[contains(@class, "description")]'); |
@@ -150,6 +150,9 @@ |
||
150 | 150 | return [$location->lat, $location->lon]; |
151 | 151 | } |
152 | 152 | |
153 | + /** |
|
154 | + * @param \DOMXPath $xpath |
|
155 | + */ |
|
153 | 156 | public function getEventPage($xpath) |
154 | 157 | { |
155 | 158 | $confPath = $xpath->query("//h3/a[contains(@class, 'summary')]"); |
@@ -38,6 +38,10 @@ |
||
38 | 38 | $this->timezone = new \DateTimezone($timezone); |
39 | 39 | } |
40 | 40 | |
41 | + /** |
|
42 | + * @param \DOMDocument $dom |
|
43 | + * @param \DOMXPath $xpath |
|
44 | + */ |
|
41 | 45 | public function parse($dom, $xpath) |
42 | 46 | { |
43 | 47 | $endDate = $xpath->query("//div[contains(@class, 'vevent')]/*/abbr[contains(@class, 'dtend')]"); ///a/abbr[class='dtstart'] |
@@ -32,6 +32,10 @@ |
||
32 | 32 | class EventName |
33 | 33 | { |
34 | 34 | |
35 | + /** |
|
36 | + * @param \DOMDocument $dom |
|
37 | + * @param \DOMXPath $xpath |
|
38 | + */ |
|
35 | 39 | public function parse($dom, $xpath) |
36 | 40 | { |
37 | 41 | $confPath = $xpath->query("//h3/a[contains(@class, 'summary')]"); |
@@ -38,6 +38,10 @@ |
||
38 | 38 | $this->timezone = new \DateTimezone($timezone); |
39 | 39 | } |
40 | 40 | |
41 | + /** |
|
42 | + * @param \DOMDocument $dom |
|
43 | + * @param \DOMXPath $xpath |
|
44 | + */ |
|
41 | 45 | public function parse($dom, $xpath) |
42 | 46 | { |
43 | 47 | $startDate = $xpath->query("//div[contains(@class, 'vevent')]/*/abbr[contains(@class, 'dtstart')]"); ///a/abbr[class='dtstart'] |
@@ -32,6 +32,10 @@ |
||
32 | 32 | class EventUri |
33 | 33 | { |
34 | 34 | |
35 | + /** |
|
36 | + * @param \DOMDocument $dom |
|
37 | + * @param \DOMXPath $xpath |
|
38 | + */ |
|
35 | 39 | public function parse($dom, $xpath) |
36 | 40 | { |
37 | 41 | $uriPath = $xpath->query("//a[contains(@title, 'visit their website')]"); |
@@ -32,6 +32,10 @@ |
||
32 | 32 | class Location |
33 | 33 | { |
34 | 34 | |
35 | + /** |
|
36 | + * @param \DOMDocument $dom |
|
37 | + * @param \DOMXPath $xpath |
|
38 | + */ |
|
35 | 39 | public function parse($dom, $xpath) |
36 | 40 | { |
37 | 41 | $locations = $xpath->query("//div[contains(@class, 'vevent')]/p[contains(@class, 'location')]/a"); ///a/abbr[class='dtstart'] |
@@ -38,6 +38,10 @@ |
||
38 | 38 | $this->timezone = new \DateTimezone($timezone); |
39 | 39 | } |
40 | 40 | |
41 | + /** |
|
42 | + * @param \DOMDocument $dom |
|
43 | + * @param \DOMXPath $xpath |
|
44 | + */ |
|
41 | 45 | public function parse($dom, $xpath) |
42 | 46 | { |
43 | 47 | $openingDate = $xpath->query("//span[text()='Openend on:']/following-sibling::strong"); |
@@ -32,6 +32,10 @@ |
||
32 | 32 | class Tags |
33 | 33 | { |
34 | 34 | |
35 | + /** |
|
36 | + * @param \DOMDocument $dom |
|
37 | + * @param \DOMXPath $xpath |
|
38 | + */ |
|
35 | 39 | public function parse($dom, $xpath) |
36 | 40 | { |
37 | 41 | $tags = $xpath->query( |