| 1 | <?php |
||
| 9 | class Runner implements RunnerInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var Run |
||
| 13 | */ |
||
| 14 | private $delegate; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Runner constructor. |
||
| 18 | * @param Run $delegate |
||
| 19 | */ |
||
| 20 | 5 | public function __construct(Run $delegate) |
|
| 24 | |||
| 25 | /** |
||
| 26 | * Registers the error handlers |
||
| 27 | * @return mixed |
||
| 28 | */ |
||
| 29 | 2 | public function register() |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @param $handler |
||
| 36 | * @return RunnerInterface |
||
| 37 | */ |
||
| 38 | 1 | public function addHandler($handler) |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @param $formatter |
||
| 47 | * @return RunnerInterface |
||
| 48 | */ |
||
| 49 | 2 | public function addFormatter($formatter) |
|
| 55 | |||
| 56 | /** |
||
| 57 | * @param Throwable $e |
||
| 58 | */ |
||
| 59 | 1 | public function handleException(Throwable $e) |
|
| 63 | } |
||
| 64 |