| 1 | <?php |
||
| 13 | class ErrorLog implements ErrorHandlerInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * handle the error |
||
| 17 | * |
||
| 18 | * @param int $errno |
||
| 19 | * @param string $errstr |
||
| 20 | * @param string $errfile |
||
| 21 | * @param int $errline |
||
| 22 | * |
||
| 23 | * @return boolean |
||
| 24 | */ |
||
| 25 | public function handleError(int $errno, string $errstr, ?string $errfile, ?string $errline) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * handle all exceptions |
||
| 32 | * |
||
| 33 | * @param \Exception $exception |
||
| 34 | * |
||
| 35 | * @return mixed |
||
| 36 | */ |
||
| 37 | public function handleException(\Throwable $exception) |
||
| 45 | |||
| 46 | public function handleShutdown() |
||
| 54 | |||
| 55 | protected function log(int $code, string $message, ?string $file, ?string $line): void |
||
| 59 | } |
||
| 60 |