| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | public function __construct(ErrorMessage $error) |
||
| 28 | { |
||
| 29 | parent::__construct($error->message, $error->code); |
||
| 30 | |||
| 31 | // These are only set if server is running in debug mode, but even if not set we want to overwrite the values. |
||
| 32 | $this->file = (string)$error->file; |
||
| 33 | $this->line = (int)$error->line; |
||
| 34 | $this->trace = explode("\n", (array)$error->trace); |
||
| 35 | } |
||
| 36 | } |
||
| 37 |