| Total Complexity | 10 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | abstract class ArrayProxy implements ArrayAccess, IteratorAggregate |
||
| 9 | { |
||
| 10 | /** @var mixed */ |
||
| 11 | private $resource; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param mixed $resource |
||
| 15 | */ |
||
| 16 | public function __construct(array $resource) |
||
| 17 | { |
||
| 18 | $this->resource = $resource; |
||
| 19 | } |
||
| 20 | |||
| 21 | public static function map(array $resources) |
||
| 26 | } |
||
| 27 | |||
| 28 | public function __get(string $property) |
||
| 29 | { |
||
| 30 | return $this->get($property); |
||
| 31 | } |
||
| 32 | |||
| 33 | public function offsetExists($offset) |
||
| 34 | { |
||
| 35 | return true; |
||
| 36 | } |
||
| 37 | |||
| 38 | public function offsetGet($offset) |
||
| 39 | { |
||
| 40 | return $this->get($offset); |
||
| 41 | } |
||
| 42 | |||
| 43 | public function offsetSet($offset, $value) |
||
| 44 | { |
||
| 45 | |||
| 46 | } |
||
| 47 | |||
| 48 | public function offsetUnset($offset) |
||
| 50 | |||
| 51 | } |
||
| 52 | |||
| 53 | public function getIterator() |
||
| 54 | { |
||
| 55 | return $this->resource; |
||
| 56 | } |
||
| 57 | |||
| 58 | private function get($property) |
||
| 65 | } |
||
| 66 | } |
||
| 67 |