| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 11 | 8 | public function resolve($context = null): mixed |
|
| 12 | { |
||
| 13 | 8 | if ($this->isResolved) { |
|
| 14 | 6 | return $this->resolvedValue; |
|
| 15 | } |
||
| 16 | |||
| 17 | 8 | $result = $this->doResolve($context); |
|
| 18 | |||
| 19 | 8 | $this->resolvedValue = $result; |
|
| 20 | 8 | $this->isResolved = true; |
|
| 21 | |||
| 22 | 8 | return $result; |
|
| 23 | } |
||
| 27 |