Total Complexity | 2 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
9 | final class InvalidRegExpException extends RuntimeException implements ExceptionInterface |
||
10 | { |
||
11 | |||
12 | private $pattern; |
||
13 | |||
14 | 5 | public function __construct(string $pattern, Throwable $previous = null) |
|
15 | { |
||
16 | 5 | $this->pattern = $pattern; |
|
17 | 5 | parent::__construct("Error processing regular expression: {$this->pattern}", 0, $previous); |
|
18 | 5 | } |
|
19 | |||
20 | 1 | public function getPattern(): string |
|
23 | } |
||
24 | } |
||
25 |