Total Complexity | 10 |
Total Lines | 57 |
Duplicated Lines | 0 % |
Coverage | 63.64% |
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 | 5 | public function __construct(array $resource) |
|
17 | { |
||
18 | 5 | $this->resource = $resource; |
|
19 | 5 | } |
|
20 | |||
21 | public static function map(array $resources) |
||
26 | } |
||
27 | |||
28 | 3 | public function __get(string $property) |
|
29 | { |
||
30 | 3 | return $this->get($property); |
|
31 | } |
||
32 | |||
33 | public function offsetExists($offset) |
||
34 | { |
||
35 | return true; |
||
36 | } |
||
37 | |||
38 | 2 | public function offsetGet($offset) |
|
39 | { |
||
40 | 2 | 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 | 5 | private function get($property) |
|
65 | } |
||
66 | } |
||
67 |