| Total Complexity | 3 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | final class InternalNameException extends Exception implements ExceptionInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Exception message |
||
| 11 | */ |
||
| 12 | protected $message = ""; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Unknown |
||
| 16 | */ |
||
| 17 | private $string; |
||
|
|
|||
| 18 | |||
| 19 | /** |
||
| 20 | * User-defined exception code |
||
| 21 | */ |
||
| 22 | protected $code = 0; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Source filename of exception |
||
| 26 | */ |
||
| 27 | protected $file; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Source line of exception |
||
| 31 | */ |
||
| 32 | protected $line; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Unknown |
||
| 36 | */ |
||
| 37 | private $trace; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @var string $message |
||
| 41 | * @var int $code |
||
| 42 | */ |
||
| 43 | public function __construct(string $message = null, int $code = 0) |
||
| 44 | { |
||
| 45 | if (!$message) { |
||
| 46 | throw new $this('Unknown ' . get_class($this)); |
||
| 47 | } |
||
| 48 | |||
| 49 | parent::__construct($message, $code); |
||
| 50 | } |
||
| 51 | |||
| 52 | public function __toString() |
||
| 55 | } |
||
| 56 | } |
||
| 57 |