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