Lines
66.66%
2 / 3
Functions and Methods
66.66%
2 / 3
Classes and Traits
0.00%
0 / 1
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| ButtonPress | 66.66% | 2 / 3 | 66.66% | 2 / 3 | 3.33 | 0.00% | 0 / 1 | |||
| __construct | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | |||||
| getContext | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | |||||
| getRequestedState | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | |||||
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Stewart\Contracts\Exposure\Command; | |
| 6 | ||
| 7 | use Stewart\Contracts\Exposure\ExposedState; | |
| 8 | use Stewart\Contracts\State\EventContext; | |
| 9 | ||
| 10 | final readonly class ButtonPress implements ExposedCommand | |
| 11 | { | |
| 12 | public function __construct(public EventContext $context) {} | |
| 13 | ||
| 14 | public function getContext(): EventContext | |
| 15 | { | |
| 16 | return $this->context; | |
| 17 | } | |
| 18 | ||
| 19 | public function getRequestedState(): ?ExposedState | |
| 20 | { | |
| 21 | return null; | |
| 22 | } | |
| 23 | } |