| 1 | <?php |
||
| 14 | final class Requirements implements CreatableFromArray |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var ?\DateTimeImmutable |
||
| 18 | */ |
||
| 19 | private $currentDeadline; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var array |
||
| 23 | */ |
||
| 24 | private $currentlyDue; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var ?string |
||
| 28 | */ |
||
| 29 | private $disabledReason; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var array |
||
| 33 | */ |
||
| 34 | private $eventuallyDue; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @var array |
||
| 38 | */ |
||
| 39 | private $pastDue; |
||
| 40 | |||
| 41 | 4 | private function __construct() |
|
| 44 | |||
| 45 | 4 | public static function createFromArray(array $data) |
|
| 56 | |||
| 57 | 1 | public function getCurrentDeadline(): ?\DateTimeImmutable |
|
| 61 | |||
| 62 | 1 | public function getCurrentlyDue(): array |
|
| 66 | |||
| 67 | 1 | public function getDisabledReason(): ?string |
|
| 71 | |||
| 72 | 1 | public function getEventuallyDue(): array |
|
| 76 | |||
| 77 | 1 | public function getPastDue(): array |
|
| 81 | } |
||
| 82 |