| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | 1 | public function handle() |
|
| 42 | { |
||
| 43 | 1 | $exception = $this->getException(); |
|
| 44 | 1 | $inspector = $this->getInspector(); |
|
| 45 | 1 | $run = $this->getRun(); |
|
| 46 | 1 | $callable = $this->callable; |
|
| 47 | |||
| 48 | // invoke the callable directly, to get simpler stacktraces (in comparison to call_user_func). |
||
| 49 | // this assumes that $callable is a properly typed php-callable, which we check in __construct(). |
||
| 50 | 1 | return $callable($exception, $inspector, $run); |
|
| 51 | } |
||
| 52 | } |
||
| 53 |