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\Exposure\Action\ActionConfig; | |
| 8 | use Stewart\Contracts\Wire\WireVariants; | |
| 9 | ||
| 10 | #[WireVariants('platform', [ | |
| 11 | ExposedPlatform::Sensor->value => SensorConfig::class, | |
| 12 | ExposedPlatform::BinarySensor->value => BinarySensorConfig::class, | |
| 13 | ExposedPlatform::Switch->value => SwitchConfig::class, | |
| 14 | ExposedPlatform::Button->value => ButtonConfig::class, | |
| 15 | ExposedPlatform::Number->value => NumberConfig::class, | |
| 16 | ExposedPlatform::Select->value => SelectConfig::class, | |
| 17 | ExposedPlatform::Text->value => TextConfig::class, | |
| 18 | ExposedPlatform::Time->value => TimeConfig::class, | |
| 19 | ExposedPlatform::Date->value => DateConfig::class, | |
| 20 | ExposedPlatform::DateTime->value => DateTimeConfig::class, | |
| 21 | ExposedPlatform::Action->value => ActionConfig::class, | |
| 22 | ])] | |
| 23 | interface ExposureConfig | |
| 24 | { | |
| 25 | public function getPlatform(): ExposedPlatform; | |
| 26 | } |