Lines
n/a
0 / 0
Functions and Methods
n/a
0 / 0
Classes and Traits
n/a
0 / 0
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Stewart\Contracts\Exposure; | |
| 6 | ||
| 7 | use Stewart\Contracts\Exception\ExposureException; | |
| 8 | ||
| 9 | /** @phpstan-import-type ExposedAttributes from ExposedEntity */ | |
| 10 | interface ExposedBinarySensor extends ExposedEntity | |
| 11 | { | |
| 12 | public function getConfig(): BinarySensorConfig; | |
| 13 | ||
| 14 | /** @throws ExposureException */ | |
| 15 | public function updateConfig(BinarySensorConfig $config): void; | |
| 16 | ||
| 17 | public function getValue(): ?bool; | |
| 18 | ||
| 19 | /** | |
| 20 | * @param ExposedAttributes|null $attributes | |
| 21 | * @throws ExposureException | |
| 22 | */ | |
| 23 | public function setOn(?array $attributes = null): void; | |
| 24 | ||
| 25 | /** | |
| 26 | * @param ExposedAttributes|null $attributes | |
| 27 | * @throws ExposureException | |
| 28 | */ | |
| 29 | public function setOff(?array $attributes = null): void; | |
| 30 | } |