Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 13 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
30 | View Code Duplication | public function getErrors() |
|
31 | { |
||
32 | $ret = []; |
||
33 | $errors = $this->getEntityValue('errors', []); |
||
34 | if (empty($errors)) { |
||
35 | return null; |
||
36 | } |
||
37 | foreach ($errors as $error) { |
||
38 | $ret[] = new Error($error); |
||
39 | } |
||
40 | |||
41 | return $ret; |
||
42 | } |
||
43 | } |
||
44 |