Total Complexity | 4 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
7 | final class FormValidationError extends \DomainException |
||
8 | { |
||
9 | /** |
||
10 | * @var class-string |
||
|
|||
11 | */ |
||
12 | protected string $formClass; |
||
13 | /** |
||
14 | * @var array<string, ValidationError> |
||
15 | */ |
||
16 | protected array $attributeErrorMap; |
||
17 | |||
18 | /** |
||
19 | * @param class-string $formClass |
||
20 | * @param array<string, ValidationError> $attributeErrorMap |
||
21 | */ |
||
22 | public function __construct(string $formClass, array $attributeErrorMap) |
||
23 | { |
||
24 | parent::__construct('Validation error'); |
||
25 | $this->formClass = $formClass; |
||
26 | $this->attributeErrorMap = $attributeErrorMap; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @return class-string |
||
31 | */ |
||
32 | public function getFormClass(): string |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @return array<string, array<array{string, array<string, mixed>}>> |
||
39 | */ |
||
40 | public function getViolatedRestrictions(): array |
||
47 | } |
||
48 | } |
||
49 |