| 1 | <?php |
||
| 9 | class Runner implements RunnerInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var BooBoo |
||
| 13 | */ |
||
| 14 | private $delegate; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param BooBoo $delegate |
||
| 18 | */ |
||
| 19 | 5 | public function __construct(BooBoo $delegate) |
|
| 23 | |||
| 24 | /** |
||
| 25 | * Registers the error handlers |
||
| 26 | * @return mixed |
||
| 27 | */ |
||
| 28 | 2 | public function register() |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @param Throwable $e |
||
| 35 | */ |
||
| 36 | 1 | public function handleException(Throwable $e) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @param $handler |
||
| 43 | * @return RunnerInterface |
||
| 44 | */ |
||
| 45 | 1 | public function addHandler($handler) |
|
| 51 | |||
| 52 | /** |
||
| 53 | * @param $formatter |
||
| 54 | * @return RunnerInterface |
||
| 55 | */ |
||
| 56 | 2 | public function addFormatter($formatter) |
|
| 62 | } |
||
| 63 |