| 1 | <?php |
||
| 9 | abstract class AbstractEmitter implements EmitterInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var array |
||
| 13 | */ |
||
| 14 | protected $options = [ |
||
| 15 | 'includeTrace' => true, |
||
| 16 | ]; |
||
| 17 | |||
| 18 | 12 | public function __construct(array $options = []) |
|
| 22 | |||
| 23 | 12 | public function emit(Throwable $exception) : void |
|
| 31 | |||
| 32 | abstract protected function format(Throwable $exception) : string; |
||
| 33 | |||
| 34 | 5 | final protected function formatTraceRecord(array $traceRecord, int $index, int $traceLength) : string |
|
| 46 | } |
||
| 47 |