Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
ExpirationState | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | /** @noinspection PhpUnhandledExceptionInspection */ |
3 | declare(strict_types=1); |
4 | |
5 | readonly class ExpirationState { |
6 | public ExpirationStateType $type; |
7 | public ?int $timestamp; |
8 | public function __construct(ExpirationStatetype $type, ?int $timestamp = null) { |
9 | $this->type = $type; |
10 | $this->timestamp = $timestamp; |
11 | } |
12 | } |