| Total Complexity | 4 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 5 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | trait ProxyTrait |
||
| 10 | { |
||
| 11 | private ?object $currentError = null; |
||
| 12 | |||
| 13 | 2 | public function getCurrentError(): ?object |
|
| 14 | { |
||
| 15 | 2 | return $this->currentError; |
|
| 16 | } |
||
| 17 | |||
| 18 | 2 | public function hasCurrentError(): bool |
|
| 19 | { |
||
| 20 | 2 | return $this->currentError !== null; |
|
| 21 | } |
||
| 22 | |||
| 23 | 3 | protected function repeatError(Throwable $error): void |
|
| 27 | } |
||
| 28 | |||
| 29 | 6 | protected function resetCurrentError(): void |
|
| 34 |