| @@ 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 | ||
| @@ 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 | ||