| Total Complexity | 4 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | abstract class InspectorSettingsException extends \Exception |
||
| 23 | { |
||
| 24 | public const ERROR_NONE = 0; |
||
| 25 | |||
| 26 | /** @var array<int, string> */ |
||
| 27 | protected const ERRORS = [ |
||
| 28 | self::ERROR_NONE => '', |
||
| 29 | ]; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $message |
||
| 33 | * @param int $code |
||
| 34 | * @param Throwable|null $previous |
||
| 35 | */ |
||
| 36 | public function __construct($message = "", $code = 0, Throwable $previous = null) |
||
| 37 | { |
||
| 38 | parent::__construct($message, $code, $previous); |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return array<int, string> |
||
| 43 | */ |
||
| 44 | public static function getErrors(): array |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @param int $error_no |
||
| 52 | * @return static |
||
| 53 | */ |
||
| 54 | public static function create(int $error_no): InspectorSettingsException |
||
| 62 |