| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 24 | class SunsetHeader extends Header |
||
| 25 | { |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var DateTimeInterface |
||
| 29 | */ |
||
| 30 | private DateTimeInterface $timestamp; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Constructor of the class |
||
| 34 | * |
||
| 35 | * @param DateTimeInterface $timestamp |
||
| 36 | */ |
||
| 37 | 7 | public function __construct(DateTimeInterface $timestamp) |
|
| 38 | { |
||
| 39 | 7 | $this->timestamp = $timestamp; |
|
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritdoc} |
||
| 44 | */ |
||
| 45 | 3 | public function getFieldName(): string |
|
| 46 | { |
||
| 47 | 3 | return 'Sunset'; |
|
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * {@inheritdoc} |
||
| 52 | */ |
||
| 53 | 5 | public function getFieldValue(): string |
|
| 56 | } |
||
| 57 | } |
||
| 58 |