| 1 | <?php |
||
| 19 | abstract class BaseStrategy { |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var ErrorHandlerInterface[] $handlers |
||
| 23 | */ |
||
| 24 | protected $handlers = array(); |
||
| 25 | |||
| 26 | |||
| 27 | /** |
||
| 28 | * @param ErrorHandlerInterface $errorHandler |
||
| 29 | * @param string $type |
||
| 30 | * @return int |
||
| 31 | */ |
||
| 32 | public function registerHandler(ErrorHandlerInterface $errorHandler, $type = '') { |
||
| 42 | |||
| 43 | |||
| 44 | /** |
||
| 45 | * @param Exception $exception |
||
| 46 | * @return bool Did you manage to process the error |
||
| 47 | */ |
||
| 48 | abstract public function handle(Exception $exception); |
||
| 49 | } |
||
| 50 |