| Conditions | 3 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 47 | public function __toString() |
||
| 48 | { |
||
| 49 | $info = get_class() . ' - ' . $this->getMessage(); |
||
| 50 | $previous = $this->getPrevious(); |
||
| 51 | if (null !== $previous) { |
||
| 52 | $info .= ' - Previous Exception: ' . (string) $this->getPrevious(); |
||
| 53 | } |
||
| 54 | foreach ($this->ignored as $exception) { |
||
| 55 | $info .= "\nIgnored Exception: " . (string) $exception; |
||
| 56 | } |
||
| 57 | |||
| 58 | return $info; |
||
| 59 | } |
||
| 60 | } |
||
| 61 |