Total Complexity | 4 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
6 | class ConstraintViolations extends \Exception |
||
7 | { |
||
8 | private $violations; |
||
9 | |||
10 | /** |
||
11 | * @param ConstraintViolation[] $violations |
||
12 | */ |
||
13 | public function __construct(array $violations) |
||
14 | { |
||
15 | $this->violations = $violations; |
||
16 | parent::__construct((string) $this); |
||
17 | } |
||
18 | |||
19 | public function getViolations() |
||
20 | { |
||
21 | return $this->violations; |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * @return string |
||
26 | */ |
||
27 | public function __toString() |
||
41 | } |
||
42 | } |
||
43 |