Lines
0.00%
0 / 3
Methods
0.00%
0 / 3
Classes
0.00%
0 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| __construct | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | ||
| getContext | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | ||
| getRequestedState | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | ||
| 12 | final readonly class DateCommand implements ExposedCommand | |
| 13 | { | |
| 14 | public function __construct( | |
| 15 | public DateTimeImmutable $value, | |
| 16 | public EventContext $context, | |
| 17 | ) {} | |
| 18 | ||
| 19 | public function getContext(): EventContext | |
| 20 | { | |
| 21 | return $this->context; | |
| 22 | } | |
| 23 | ||
| 24 | public function getRequestedState(): ExposedState | |
| 25 | { | |
| 26 | return new ExposedState(CalendarStateFormat::formatDate($this->value)); | |
| 27 | } | |
| 28 | } |