| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public function __construct($file, $line, $expression, $description) |
||
| 38 | { |
||
| 39 | if ($expression) { |
||
| 40 | $message = sprintf('%s %s', $expression, $description); |
||
| 41 | } else { |
||
| 42 | $message = $description; |
||
| 43 | } |
||
| 44 | |||
| 45 | parent::__construct($message); |
||
| 46 | |||
| 47 | $this->file = $file; |
||
| 48 | $this->line = $line; |
||
| 49 | |||
| 50 | $reflector = new ReflectionClass('Exception'); |
||
| 51 | $traceProperty = $reflector->getProperty('trace'); |
||
| 52 | $traceProperty->setAccessible(true); |
||
| 53 | $traceProperty->setValue($this, array()); |
||
| 54 | } |
||
| 55 | } |
||
| 56 |