src/Stefanius/SpecialDates/Dates/PinkSaturday.php 1 location
|
@@ 7-23 (lines=17) @@
|
4 |
|
|
5 |
|
use Stefanius\SpecialDates\SDK\AbstractSpecialDate; |
6 |
|
|
7 |
|
class PinkSaturday extends AbstractSpecialDate |
8 |
|
{ |
9 |
|
protected function generate() |
10 |
|
{ |
11 |
|
$this->description = 'Roze Zaterdag'; |
12 |
|
|
13 |
|
if ($this->year >= 1977) { |
14 |
|
$timestamp = strtotime('fourth saturday', mktime(0, 0, 0, 6, 0, $this->year)); |
15 |
|
$date = new \DateTime(); |
16 |
|
$date->setTimestamp($timestamp); |
17 |
|
|
18 |
|
$this->setupDateTimeObjects($date); |
19 |
|
} else { |
20 |
|
$this->valid = false; |
21 |
|
} |
22 |
|
} |
23 |
|
} |
24 |
|
|
src/Stefanius/SpecialDates/Dates/SystemEngineerDay.php 1 location
|
@@ 7-23 (lines=17) @@
|
4 |
|
|
5 |
|
use Stefanius\SpecialDates\SDK\AbstractSpecialDate; |
6 |
|
|
7 |
|
class SystemEngineerDay extends AbstractSpecialDate |
8 |
|
{ |
9 |
|
protected function generate() |
10 |
|
{ |
11 |
|
$this->description = 'Systeembeheerdersdag'; |
12 |
|
|
13 |
|
if ($this->year >= 2000) { |
14 |
|
$timestamp = strtotime('last friday', mktime(0, 0, 0, 7, 0, $this->year)); |
15 |
|
$date = new \DateTime(); |
16 |
|
$date->setTimestamp($timestamp); |
17 |
|
|
18 |
|
$this->setupDateTimeObjects($date); |
19 |
|
} else { |
20 |
|
$this->valid = false; |
21 |
|
} |
22 |
|
} |
23 |
|
} |
24 |
|
|
src/Stefanius/SpecialDates/CommonDates/FathersDay.php 1 location
|
@@ 7-23 (lines=17) @@
|
4 |
|
|
5 |
|
use Stefanius\SpecialDates\SDK\AbstractSpecialDate; |
6 |
|
|
7 |
|
class FathersDay extends AbstractSpecialDate |
8 |
|
{ |
9 |
|
protected function generate() |
10 |
|
{ |
11 |
|
$this->description = 'Vaderdag'; |
12 |
|
|
13 |
|
if ($this->year >= 1948) { |
14 |
|
$timestamp = strtotime('third sunday', mktime(0, 0, 0, 6, 0, $this->year)); |
15 |
|
$date = new \DateTime(); |
16 |
|
$date->setTimestamp($timestamp); |
17 |
|
|
18 |
|
$this->setupDateTimeObjects($date); |
19 |
|
} else { |
20 |
|
$this->valid = false; |
21 |
|
} |
22 |
|
} |
23 |
|
} |
24 |
|
|
src/Stefanius/SpecialDates/CommonDates/MothersDay.php 1 location
|
@@ 7-23 (lines=17) @@
|
4 |
|
|
5 |
|
use Stefanius\SpecialDates\SDK\AbstractSpecialDate; |
6 |
|
|
7 |
|
class MothersDay extends AbstractSpecialDate |
8 |
|
{ |
9 |
|
protected function generate() |
10 |
|
{ |
11 |
|
$this->description = 'Moederdag'; |
12 |
|
|
13 |
|
if ($this->year >= 1908) { |
14 |
|
$timestamp = strtotime('second sunday', mktime(0, 0, 0, 5, 0, $this->year)); |
15 |
|
$date = new \DateTime(); |
16 |
|
$date->setTimestamp($timestamp); |
17 |
|
|
18 |
|
$this->setupDateTimeObjects($date); |
19 |
|
} else { |
20 |
|
$this->valid = false; |
21 |
|
} |
22 |
|
} |
23 |
|
} |
24 |
|
|