| Total Complexity | 6 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class ValidationException extends Exception implements ValidationExceptionInterface |
||
| 9 | { |
||
| 10 | private array $errors = []; |
||
| 11 | |||
| 12 | public function formatMessage(): string |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @inheritDoc |
||
| 26 | */ |
||
| 27 | public function addError(string $error, ?string $field = null): void |
||
| 33 | } |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @inheritDoc |
||
| 38 | */ |
||
| 39 | public function getErrors(): array |
||
| 44 |