Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
71 | public function __toString() |
||
72 | { |
||
73 | $template = "[$this->statusMessage] The following errors ocurred:\n%s"; |
||
74 | $temp_list = ''; |
||
75 | foreach ($this->errors as $error) { |
||
76 | $path = $error->getPath(); |
||
77 | $desc = $error->getDescription(); |
||
78 | |||
79 | $temp_list .= "$path: $desc\n"; |
||
80 | } |
||
81 | |||
82 | return sprintf($template, $temp_list); |
||
83 | } |
||
84 | } |
||
85 |