| 1 | <?php |
||
| 10 | class ErrorCollection |
||
| 11 | { |
||
| 12 | |||
| 13 | protected $_exceptions = array(); |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param \Exception $exception |
||
| 17 | */ |
||
| 18 | public function addError( \Exception $exception ) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return array |
||
| 25 | */ |
||
| 26 | public function getErrors() |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return int |
||
| 33 | */ |
||
| 34 | public function countErrors() |
||
| 38 | } |
||
| 39 |