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 | ||
| 10 | final readonly class TextCommand implements ExposedCommand | |
| 11 | { | |
| 12 | public function __construct( | |
| 13 | public string $value, | |
| 14 | public EventContext $context, | |
| 15 | ) {} | |
| 16 | ||
| 17 | public function getContext(): EventContext | |
| 18 | { | |
| 19 | return $this->context; | |
| 20 | } | |
| 21 | ||
| 22 | public function getRequestedState(): ExposedState | |
| 23 | { | |
| 24 | return new ExposedState($this->value); | |
| 25 | } | |
| 26 | } |