| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function overrideLazyProperty(string $property, $value) |
||
| 15 | { |
||
| 16 | if (!isset($this->lazyProperties[$property])) { |
||
| 17 | return $this; |
||
| 18 | } |
||
| 19 | $this->lazyProperties[$property]['value'] = $value; |
||
| 20 | $this->lazyProperties[$property]['loaded'] = true; |
||
| 21 | $this->{$property} = $this->lazyProperties[$property]['value']; |
||
| 22 | return $this; |
||
| 23 | } |
||
| 43 | } |