Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
37 | #[\ReturnTypeWillChange] |
||
38 | public function offsetGet(mixed $offset) |
||
39 | { |
||
40 | if (!$this->offsetExists($offset)) { |
||
41 | throw new LogicException("Offset '$offset' does not exist"); |
||
42 | } |
||
43 | |||
44 | return $this->sections[$offset] ??= $this->repository->fetch( |
||
45 | $this->path_for($offset), |
||
46 | $this->data_path_for($offset) |
||
47 | ); |
||
60 |