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