| 1 | <?php |
||
| 9 | class ValidationResult implements ValidationResultInterface |
||
| 10 | { |
||
| 11 | const STATUS_OK = 'OK'; |
||
| 12 | |||
| 13 | const STATUS_ERROR = 'error'; |
||
| 14 | |||
| 15 | private $status; |
||
| 16 | |||
| 17 | private $errors = []; |
||
| 18 | |||
| 19 | 33 | public function __construct(string $status, array $errors = []) |
|
| 28 | |||
| 29 | 33 | public function isOk(): bool |
|
| 33 | |||
| 34 | 21 | public function getErrors(): array |
|
| 38 | } |
||
| 39 |