| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | final class RuntimeError extends Exception |
||
| 8 | { |
||
| 9 | private function __construct(string $message = "", int $code = 0, \Throwable $previous = null) |
||
| 10 | { |
||
| 11 | parent::__construct( |
||
| 12 | $message, |
||
| 13 | $code, |
||
| 14 | $previous |
||
| 15 | ); |
||
| 16 | } |
||
| 17 | |||
| 18 | public static function keyNotFound(string $key): self |
||
| 19 | { |
||
| 20 | return new static("{$key} does not exist in this environment"); |
||
| 21 | } |
||
| 22 | |||
| 23 | public static function envFileNotFound(string $path): self |
||
| 26 | } |
||
| 27 | } |
||
| 28 |