Completed
Push — master ( 2dd332...d6426f )
by steef
02:53
created

SeriousRequest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

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 13
    protected function generate()
10
    {
11 13
        $this->description = '3FM Serious Request';
12
13 13
        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 9
            $this->valid = false;
18
        }
19 13
    }
20
}
21