| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class TriggerErrorHandler implements ExceptionHandlerInterface |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var int |
||
| 23 | */ |
||
| 24 | private $errorLevel; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * TriggerErrorHandler constructor. |
||
| 28 | * |
||
| 29 | * @param int $errorLevel the desired error level of exceptions |
||
| 30 | */ |
||
| 31 | public function __construct($errorLevel = E_USER_NOTICE) |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * {@inheritdoc} |
||
| 38 | */ |
||
| 39 | public function handle(Exception $e) |
||
| 44 |