Total Complexity | 4 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 22.22% |
Changes | 0 |
1 | <?php |
||
13 | final class Semester implements TemporalExpressionInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var SemesterValueObject |
||
17 | */ |
||
18 | protected $semester; |
||
19 | |||
20 | /** |
||
21 | * @param SemesterValueObject $semester |
||
22 | */ |
||
23 | private function __construct(SemesterValueObject $semester) |
||
24 | { |
||
25 | $this->semester = $semester; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @return Semester |
||
30 | */ |
||
31 | public static function first(): self |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @return Semester |
||
38 | */ |
||
39 | public static function second(): self |
||
40 | { |
||
41 | return new self(SemesterValueObject::second()); |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | 12 | public function includes(DateTimeInterface $dateTime): bool |
|
50 | } |
||
51 | } |
||
52 |