We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 6 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 5 | class HardwareType { |
||
| 6 | |||
| 7 | /** @var array<int, self> */ |
||
| 8 | private static array $CACHE_HARDWARE_TYPES = []; |
||
| 9 | |||
| 10 | public static function clearCache(): void { |
||
| 11 | self::$CACHE_HARDWARE_TYPES = []; |
||
| 12 | } |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @return array<int, self> |
||
| 16 | */ |
||
| 17 | public static function getAll(): array { |
||
| 31 | } |
||
| 32 | |||
| 33 | public static function get(int $hardwareTypeID): self { |
||
| 34 | return self::getAll()[$hardwareTypeID]; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function __construct( |
||
| 42 | |||
| 43 | } |
||
| 44 |