| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | final class CouldNotUseRuleException extends RuntimeException |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var Rule Rule that caused the error. |
||
| 18 | */ |
||
| 19 | private $rule; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param Rule $rule Rule that caused the error. |
||
| 23 | * @param string $message Exception message. |
||
| 24 | * @param Throwable|null $previous Previous exception, used for exception chaining. |
||
| 25 | */ |
||
| 26 | 1 | public function __construct(Rule $rule, string $message, ?Throwable $previous = null) |
|
| 31 | 1 | } |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @return Rule Rule that caused the error. |
||
| 35 | */ |
||
| 36 | 1 | public function getRule(): Rule |
|
| 41 |