Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
72 | public function __resolve() |
||
73 | { |
||
74 | if (!$this->loaded) { |
||
75 | $this->loaded = true; |
||
76 | |||
77 | // use entity from heap, if has already been loaded in memory otherwise select from repository |
||
78 | $this->entity = $this->getEntityFromHeap() ?? $this->getEntityFromSource(); |
||
79 | } |
||
80 | |||
81 | return $this->entity; |
||
82 | } |
||
83 | |||
106 | } |