Total Complexity | 5 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 18.18% |
Changes | 5 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | trait ProxyTrait |
||
10 | { |
||
11 | private ?object $currentError = null; |
||
12 | |||
13 | protected function getCurrentResultStatus(): string |
||
14 | { |
||
15 | if ($this->currentError === null) { |
||
16 | return 'success'; |
||
17 | } |
||
18 | |||
19 | return 'failed'; |
||
20 | } |
||
21 | |||
22 | protected function repeatError(Throwable $error): void |
||
26 | } |
||
27 | |||
28 | 1 | protected function resetCurrentError(): void |
|
29 | { |
||
30 | 1 | $this->currentError = null; |
|
31 | } |
||
32 | |||
33 | protected function getCurrentError(): ?object |
||
36 | } |
||
37 | } |
||
38 |