| Total Complexity | 5 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | trait ProxyTrait |
||
| 6 | { |
||
| 7 | private ?object $currentError = null; |
||
| 8 | |||
| 9 | protected function getCurrentResultStatus(): string |
||
| 10 | { |
||
| 11 | return $this->currentError === null ? 'success' : 'failed'; |
||
| 12 | } |
||
| 13 | |||
| 14 | protected function repeatError(object $error): void |
||
| 19 | } |
||
| 20 | |||
| 21 | protected function resetCurrentError(): void |
||
| 22 | { |
||
| 23 | $this->currentError = null; |
||
| 24 | } |
||
| 25 | |||
| 26 | protected function getCurrentError(): ?object |
||
| 29 | } |
||
| 30 | } |
||
| 31 |