| Total Complexity | 4 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class ErrorHandler extends Handler implements HandlerContract |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var callable |
||
| 12 | */ |
||
| 13 | protected $previousHandler; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @return void |
||
| 17 | */ |
||
| 18 | public function register(): void |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param int $code |
||
| 25 | * @param string $error |
||
| 26 | * @param string $file |
||
| 27 | * @param int $line |
||
| 28 | * @return mixed |
||
| 29 | * |
||
| 30 | * @throws \Honeyhadger\Exceptions\ServiceException |
||
| 31 | */ |
||
| 32 | public function handle($code, $error, $file = null, $line = null) |
||
| 47 |