| Total Complexity | 4 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | abstract class AbstractContext implements ContextInterface |
||
| 11 | { |
||
| 12 | protected const METHOD = 'method'; |
||
| 13 | protected const EXCEPTION = 'exception'; |
||
| 14 | |||
| 15 | protected string $type; |
||
| 16 | |||
| 17 | private Throwable|null $exception = null; |
||
| 18 | |||
| 19 | public function __construct(private string $method) |
||
| 20 | { |
||
| 21 | } |
||
| 22 | |||
| 23 | public function getType(): string |
||
| 24 | { |
||
| 25 | return $this->type; |
||
| 26 | } |
||
| 27 | |||
| 28 | public function setException(Throwable $e): static |
||
| 32 | } |
||
| 33 | |||
| 34 | public function __toArray(): array |
||
| 42 |