| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class Result |
||
| 11 | { |
||
| 12 | /** @var array */ |
||
| 13 | private array $errors = []; |
||
| 14 | |||
| 15 | |||
| 16 | /** |
||
| 17 | */ |
||
| 18 | public function addError(string $message): void |
||
| 19 | { |
||
| 20 | $this->errors[] = $message; |
||
| 21 | } |
||
| 22 | |||
| 23 | |||
| 24 | /** |
||
| 25 | */ |
||
| 26 | public function isValid(): bool |
||
| 29 | } |
||
| 30 | |||
| 31 | |||
| 32 | /** |
||
| 33 | * @return array |
||
| 34 | */ |
||
| 35 | public function getErrors(): array |
||
| 40 |