Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
64 | public function __toString() |
||
65 | { |
||
66 | $template = "[$this->code] The following errors ocurred:\n%s"; |
||
67 | $temp_list = ''; |
||
68 | foreach ($this->errors as $error) { |
||
69 | $path = $error->getPath(); |
||
70 | $desc = $error->getDescription(); |
||
71 | |||
72 | $temp_list .= "$path: $desc\n"; |
||
73 | } |
||
74 | |||
75 | return sprintf($template, $temp_list); |
||
76 | } |
||
77 | } |
||
78 |