Total Complexity | 3 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 28.57% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | trait HasErrorsTrait |
||
12 | { |
||
13 | protected $_errors = []; |
||
14 | |||
15 | /** |
||
16 | * @param $message |
||
17 | * @return $this |
||
18 | */ |
||
19 | public function addError($message) |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * @return array |
||
28 | */ |
||
29 | public function getErrors() |
||
30 | { |
||
31 | return $this->_errors; |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @return bool |
||
36 | */ |
||
37 | 8 | public function isError() |
|
40 | } |
||
41 | } |
||
42 |