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