Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
18 | abstract class InspectorSettingsException extends \Exception |
||
19 | { |
||
20 | public const ERROR_NONE = 0; |
||
21 | |||
22 | /** @var array<int, string> */ |
||
23 | protected const ERRORS = [ |
||
24 | self::ERROR_NONE => '', |
||
25 | ]; |
||
26 | |||
27 | /** |
||
28 | * @return array<int, string> |
||
29 | */ |
||
30 | public static function getErrors(): array |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @param int $error_no |
||
38 | * @return static |
||
39 | */ |
||
40 | public static function create(int $error_no): InspectorSettingsException |
||
48 |