| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class HandlerProvider implements HandlerProviderInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var HandlerCollection |
||
| 11 | */ |
||
| 12 | private $collection; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var bool |
||
| 16 | */ |
||
| 17 | private $isDebug; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * HandlerProvider constructor. |
||
| 21 | * |
||
| 22 | * @param \Xervice\ExceptionHandler\Business\Handler\HandlerCollection $collection |
||
| 23 | * @param bool $isDebug |
||
| 24 | */ |
||
| 25 | 3 | public function __construct(HandlerCollection $collection, bool $isDebug) |
|
| 26 | { |
||
| 27 | 3 | $this->collection = $collection; |
|
| 28 | 3 | $this->isDebug = $isDebug; |
|
| 29 | 3 | } |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @param \Exception $exception |
||
| 33 | */ |
||
| 34 | 3 | public function handleException(\Exception $exception): void |
|
| 38 | } |
||
| 39 | 3 | } |
|
| 41 |