1 | <?php |
||
21 | class RuleViolationException extends \RuntimeException |
||
22 | { |
||
23 | |||
24 | /** |
||
25 | * @var RuleInterface |
||
26 | */ |
||
27 | protected $rule; |
||
28 | |||
29 | /** |
||
30 | * @var ExpectationFailedException[] |
||
31 | */ |
||
32 | protected $expectationFailedExceptions; |
||
33 | |||
34 | /** |
||
35 | * RuleViolationException constructor. |
||
36 | * |
||
37 | * @param RuleInterface $rule |
||
38 | * @param array $expectationFailedExceptions |
||
39 | * @param int $code |
||
40 | * @param Exception|null $previous |
||
41 | */ |
||
42 | public function __construct(RuleInterface $rule, array $expectationFailedExceptions, $code = 0, Exception $previous = null) |
||
49 | |||
50 | /** |
||
51 | * @return RuleInterface |
||
52 | */ |
||
53 | public function getRule() |
||
57 | |||
58 | /** |
||
59 | * @return ExpectationFailedException[] |
||
60 | */ |
||
61 | public function getExpectationFailedExceptions() |
||
65 | } |