| 1 | <?php |
||
| 5 | trait ErrorAwareTrait |
||
| 6 | { |
||
| 7 | |||
| 8 | /** |
||
| 9 | * @var array |
||
| 10 | */ |
||
| 11 | private $errors = []; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param array $errors |
||
| 15 | */ |
||
| 16 | public function setErrors(array $errors) |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @return array |
||
| 23 | */ |
||
| 24 | public function getErrors() |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return bool |
||
| 31 | */ |
||
| 32 | public function hasErrors() |
||
| 36 | } |
||
| 37 |