| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | 2 | public function __toString(): string |
|
| 35 | { |
||
| 36 | 2 | if ($this->object !== null) { |
|
| 37 | 2 | ob_start(); |
|
| 38 | 2 | echo '<pre>'; |
|
| 39 | 2 | print_r($this->object); |
|
| 40 | 2 | echo '</pre>'; |
|
| 41 | 2 | $this->message = $this->message."\nDebug Info: ".ob_get_clean(); |
|
| 42 | } |
||
| 43 | 2 | return get_class($this)." '{$this->message}'\n in {$this->file}({$this->line})\n{$this->getTraceAsString()}"; |
|
| 44 | } |
||
| 46 |