| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 50% |
| Changes | 0 | ||
| 1 | <?php |
||
| 6 | class LoaderException extends \RuntimeException |
||
| 7 | { |
||
| 8 | const INVALID_LOADER = 1; |
||
| 9 | const UNSUPPORTED_LOADER = 2; |
||
| 10 | const BACKUP_FAIL = 3; |
||
| 11 | const NOT_SUPPORTED_METHOD = 4; |
||
| 12 | |||
| 13 | 1 | public static function invalidLoader(string $class): LoaderException |
|
| 16 | } |
||
| 17 | |||
| 18 | 1 | public static function unsupportedLoader(string $class): LoaderException |
|
| 19 | { |
||
| 20 | 1 | return new static("Loader is missing dependencies: $class", self::UNSUPPORTED_LOADER); |
|
| 21 | } |
||
| 22 | |||
| 23 | public static function backupFail(string $class): LoaderException |
||
| 26 | } |
||
| 27 | |||
| 28 | public static function notSupportedMethod(string $method, string $class): LoaderException |
||
| 31 | } |
||
| 32 | } |
||
| 33 |