1 | <?php |
||
7 | class ValidationResult implements ValidationResultInterface |
||
8 | { |
||
9 | const STATUS_OK = 'OK'; |
||
10 | |||
11 | const STATUS_ERROR = 'error'; |
||
12 | |||
13 | private $status; |
||
14 | |||
15 | private $errors = []; |
||
16 | |||
17 | 33 | public function __construct(string $status, array $errors = []) |
|
26 | |||
27 | 33 | public function isOk(): bool |
|
31 | |||
32 | 21 | public function getErrors(): array |
|
36 | } |
||
37 |