Total Complexity | 3 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
18 | final class Tools |
||
19 | { |
||
20 | /** |
||
21 | * @psalm-suppress UnusedConstructor |
||
22 | * |
||
23 | * @codeCoverageIgnore |
||
24 | */ |
||
25 | private function __construct() |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * Checks if the spl enum has been defined |
||
31 | * |
||
32 | * @param string $class Checks if the enum has been defined |
||
33 | * @param boolean $autoload Whether to autoload if not already loaded. |
||
34 | * |
||
35 | * @return boolean Returns true if enum is a defined enum, false otherwise. |
||
36 | */ |
||
37 | 1 | public static function isSplEnumExists(string $class, bool $autoload = true): bool |
|
43 |