GardenGuyDay   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 13
rs 10
c 0
b 0
f 0
ccs 7
cts 7
cp 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A generate() 0 10 1
1
<?php
2
3
namespace Stefanius\SpecialDates\Dates;
4
5
use Stefanius\SpecialDates\SDK\AbstractSpecialDate;
6
7
class GardenGuyDay extends AbstractSpecialDate
8
{
9 2
    protected function generate()
10
    {
11 2
        $this->description = 'Hoveniersmaandag';
12
13 2
        $timestamp       = strtotime('third monday', mktime(0, 0, 0, 7, 0, $this->year));
14 2
        $date = new \DateTime();
15 2
        $date->setTimestamp($timestamp);
16
17 2
        $this->setupDateTimeObjects($date);
18 2
    }
19
}
20