Lines
0.00%
0 / 2
Functions and Methods
0.00%
0 / 2
Classes and Traits
0.00%
0 / 1
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| TimeConfig | 0.00% | 0 / 2 | 0.00% | 0 / 2 | 6 | 0.00% | 0 / 1 | |||
| __construct | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | |||||
| getPlatform | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | |||||
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Stewart\Contracts\Exposure; | |
| 6 | ||
| 7 | use Stewart\Contracts\Exception\ExposureException; | |
| 8 | ||
| 9 | final readonly class TimeConfig extends ExposedEntityConfig | |
| 10 | { | |
| 11 | /** @throws ExposureException */ | |
| 12 | public function __construct( | |
| 13 | ?string $name = null, | |
| 14 | ?string $icon = null, | |
| 15 | ?EntityCategory $entityCategory = null, | |
| 16 | bool $enabledByDefault = true, | |
| 17 | ) { | |
| 18 | parent::__construct($name, $icon, $entityCategory, $enabledByDefault); | |
| 19 | } | |
| 20 | ||
| 21 | public function getPlatform(): ExposedPlatform | |
| 22 | { | |
| 23 | return ExposedPlatform::Time; | |
| 24 | } | |
| 25 | } |