SeriousRequest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 14
rs 10
c 0
b 0
f 0
ccs 8
cts 8
cp 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A generate() 0 11 2
1
<?php
2
3
namespace Stefanius\SpecialDates\Dates;
4
5
use Stefanius\SpecialDates\SDK\AbstractSpecialDate;
6
7
class SeriousRequest extends AbstractSpecialDate
8
{
9 12
    protected function generate()
10
    {
11 12
        $this->description = '3FM Serious Request';
12
13 12
        if ($this->year >= 2004) {
14 4
            $this->setupDateTimeObjects($this->generateDateTime($this->year, 12, 19), $this->generateDateTime($this->year, 12, 24));
15 4
            $this->valid = true;
16 4
        } else {
17 8
            $this->valid = false;
18
        }
19 12
    }
20
}
21