| 1 | <?php |
||
| 13 | trait ErrorContainerTrait |
||
| 14 | { |
||
| 15 | |||
| 16 | /** @var \Exception[] */ |
||
| 17 | protected $errors = []; |
||
| 18 | |||
| 19 | 2 | public function addError(\Exception $exception) |
|
| 23 | |||
| 24 | 27 | public function hasErrors() |
|
| 28 | |||
| 29 | public function getErrors() |
||
| 33 | |||
| 34 | 2 | public function getErrorsArray($asObject = true) |
|
| 67 | |||
| 68 | 18 | public function clearErrors() |
|
| 74 | |||
| 75 | } |