| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function getContextForLocation(ZendStringMemoryLocation $memory_location): StringContext |
||
| 24 | { |
||
| 25 | if (isset($this->contexts[$memory_location->address])) { |
||
| 26 | return $this->contexts[$memory_location->address]; |
||
| 27 | } |
||
| 28 | |||
| 29 | $context = new StringContext($memory_location); |
||
| 30 | $this->contexts[$memory_location->address] = $context; |
||
| 31 | return $context; |
||
| 32 | } |
||
| 34 |