Lines
0.00%
0 / 2
Methods
0.00%
0 / 2
Classes
0.00%
0 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| __construct | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | ||
| readCurrentStates | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | ||
| 14 | final readonly class RecordedStateReader implements CurrentStateReader | |
| 15 | { | |
| 16 | public function __construct( | |
| 17 | private RecordingHaContext $ha, | |
| 18 | private string|EntityId|Selector|SelectorCollection|EntityFilter $selector, | |
| 19 | ) {} | |
| 20 | ||
| 21 | public function readCurrentStates(): EntityStateCollection | |
| 22 | { | |
| 23 | return $this->ha->listStates($this->selector); | |
| 24 | } | |
| 25 | } |