| Total Complexity | 3 |
| Total Lines | 22 |
| 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 | private Throwable|null $exception = null; |
||
| 16 | |||
| 17 | public function __construct(private string $method) |
||
| 18 | { |
||
| 19 | } |
||
| 20 | |||
| 21 | public function setException(Throwable $e): static |
||
| 25 | } |
||
| 26 | |||
| 27 | public function asArray(): array |
||
| 35 |