| 1 | <?php |
||
| 11 | trait ErrorContainerTrait |
||
| 12 | { |
||
| 13 | |||
| 14 | /** @var \Exception[] */ |
||
| 15 | protected $errors = []; |
||
| 16 | |||
| 17 | 2 | public function addError(\Exception $exception) |
|
| 21 | |||
| 22 | 22 | public function hasErrors() |
|
| 26 | |||
| 27 | public function getErrors() |
||
| 31 | |||
| 32 | 2 | public function getErrorsArray() |
|
| 42 | |||
| 43 | 13 | public function clearErrors() |
|
| 49 | |||
| 50 | } |