for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Stefanius\SpecialDates\Dates;
use Stefanius\SpecialDates\SDK\AbstractSpecialDate;
class DevelopersDay extends AbstractSpecialDate
{
protected function generate()
$this->description = 'Programmeursdag';
if ($this->year >= 2002) {
if ($this->year % 4 === 0) {
$this->startDate = new \DateTime($this->year . '-09-12');
$this->endDate = new \DateTime($this->year . '-09-12');
} else {
$this->startDate = new \DateTime($this->year . '-09-13');
$this->endDate = new \DateTime($this->year . '-09-13');
}
$this->totalLength = 1;
$this->valid = false;