| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 65 | public function __resolve() |
||
| 66 | { |
||
| 67 | if (!$this->loaded) { |
||
| 68 | $this->loaded = true; |
||
| 69 | |||
| 70 | // use entity from heap, if has already been loaded in memory otherwise select from repository |
||
| 71 | $this->entity = $this->getEntityFromHeap() ?? $this->getEntityFromSource(); |
||
| 72 | } |
||
| 73 | |||
| 74 | return $this->entity; |
||
| 75 | } |
||
| 76 | |||
| 99 | } |