| Total Complexity | 3 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | abstract class DebugHandler implements HandlerInterface |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var bool Should add HTML <pre> TAG? |
||
| 20 | */ |
||
| 21 | protected $pretty; |
||
| 22 | |||
| 23 | /** @var bool Send exit code? */ |
||
| 24 | protected $exit; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * VarExportHandler constructor. |
||
| 28 | * |
||
| 29 | * @param bool $pretty |
||
| 30 | */ |
||
| 31 | public function __construct(bool $pretty = true, $exit = false) |
||
| 32 | { |
||
| 33 | $this->pretty = $pretty; |
||
| 34 | $this->exit = $exit; |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param \Throwable $throwable |
||
| 39 | * @return int|null |
||
| 40 | */ |
||
| 41 | public function __invoke(\Throwable $throwable): ?int |
||
| 46 | } |
||
| 47 | } |