Total Complexity | 4 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 88.24% |
Changes | 0 |
1 | <?php |
||
10 | class ConstraintViolations extends ApiServiceError |
||
11 | { |
||
12 | /** |
||
13 | * @var array|ConstraintViolation[] |
||
14 | */ |
||
15 | private $violations; |
||
16 | |||
17 | /** |
||
18 | * @param ConstraintViolation[] $violations |
||
19 | */ |
||
20 | 7 | public function __construct(array $violations) |
|
25 | 7 | } |
|
26 | |||
27 | /** |
||
28 | * @return array|ConstraintViolation[] |
||
29 | */ |
||
30 | public function getViolations() |
||
31 | { |
||
32 | return $this->violations; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @return string |
||
37 | */ |
||
38 | 7 | public function __toString() |
|
52 | } |
||
53 | } |
||
54 |