Code Duplication    Length = 10-12 lines in 5 locations

src/Stefanius/SpecialDates/CommonDates/ChristmasEvening.php 1 location

@@ 7-16 (lines=10) @@
4
5
use Stefanius\SpecialDates\SDK\AbstractSpecialDate;
6
7
class ChristmasEvening extends AbstractSpecialDate
8
{
9
    protected function generate()
10
    {
11
        $this->description = 'Kerstavond';
12
        $this->startDate   = \DateTime::createFromFormat('Y-m-d', $this->year . '-12-24');
13
        $this->endDate     = \DateTime::createFromFormat('Y-m-d', $this->year . '-12-24');
14
        $this->totalLength = 1;
15
    }
16
}
17

src/Stefanius/SpecialDates/CommonDates/FirstChristmasDay.php 1 location

@@ 7-18 (lines=12) @@
4
5
use Stefanius\SpecialDates\SDK\AbstractSpecialDate;
6
7
class FirstChristmasDay extends AbstractSpecialDate
8
{
9
    protected function generate()
10
    {
11
        $this->description = 'Eerste Kerstdag';
12
13
        $this->startDate   = \DateTime::createFromFormat('Y-m-d', $this->year . '-12-25');
14
        $this->endDate     = \DateTime::createFromFormat('Y-m-d', $this->year . '-12-25');
15
        $this->totalLength = 1;
16
        $this->bankHoliday = true;
17
    }
18
}
19

src/Stefanius/SpecialDates/CommonDates/LastDayOfYear.php 1 location

@@ 7-17 (lines=11) @@
4
5
use Stefanius\SpecialDates\SDK\AbstractSpecialDate;
6
7
class LastDayOfYear extends AbstractSpecialDate
8
{
9
    protected function generate()
10
    {
11
        $this->description = 'Oudjaarsdag';
12
13
        $this->startDate   = \DateTime::createFromFormat('Y-m-d', $this->year . '-12-31');
14
        $this->endDate     = \DateTime::createFromFormat('Y-m-d', $this->year . '-12-31');
15
        $this->totalLength = 1;
16
    }
17
}
18

src/Stefanius/SpecialDates/CommonDates/NewYearsDay.php 1 location

@@ 7-18 (lines=12) @@
4
5
use Stefanius\SpecialDates\SDK\AbstractSpecialDate;
6
7
class NewYearsDay extends AbstractSpecialDate
8
{
9
    protected function generate()
10
    {
11
        $this->description = 'Nieuwjaarsdag';
12
13
        $this->startDate   = \DateTime::createFromFormat('Y-m-d', $this->year . '-1-1');
14
        $this->endDate     = \DateTime::createFromFormat('Y-m-d', $this->year . '-1-1');
15
        $this->totalLength = 1;
16
        $this->bankHoliday = true;
17
    }
18
}
19

src/Stefanius/SpecialDates/CommonDates/SecondChristmasDay.php 1 location

@@ 7-18 (lines=12) @@
4
5
use Stefanius\SpecialDates\SDK\AbstractSpecialDate;
6
7
class SecondChristmasDay extends AbstractSpecialDate
8
{
9
    protected function generate()
10
    {
11
        $this->description = 'Tweede Kerstdag';
12
13
        $this->startDate   = \DateTime::createFromFormat('Y-m-d', $this->year . '-12-26');
14
        $this->endDate     = \DateTime::createFromFormat('Y-m-d', $this->year . '-12-26');
15
        $this->totalLength = 1;
16
        $this->bankHoliday = true;
17
    }
18
}
19