1 | <?php |
||
10 | abstract class AbstractCollection implements CollectionInterface |
||
11 | { |
||
12 | /** @var array */ |
||
13 | protected $values; |
||
14 | |||
15 | /** |
||
16 | * @param array $values |
||
17 | */ |
||
18 | public function __construct(array $values = []) |
||
22 | |||
23 | /** |
||
24 | * @inheritdoc |
||
25 | */ |
||
26 | public function __get($key) |
||
30 | |||
31 | /** |
||
32 | * @inheritdoc |
||
33 | */ |
||
34 | public function containsKey($key) |
||
38 | |||
39 | /** |
||
40 | * @inheritdoc |
||
41 | */ |
||
42 | public function get($key) |
||
48 | |||
49 | /** |
||
50 | * @inheritdoc |
||
51 | */ |
||
52 | public function contains($value) |
||
56 | |||
57 | /** |
||
58 | * @inheritDoc |
||
59 | */ |
||
60 | public function current() |
||
64 | |||
65 | /** |
||
66 | * @inheritDoc |
||
67 | */ |
||
68 | public function next() |
||
72 | |||
73 | /** |
||
74 | * @inheritDoc |
||
75 | */ |
||
76 | public function key() |
||
80 | |||
81 | /** |
||
82 | * @inheritDoc |
||
83 | */ |
||
84 | public function valid() |
||
88 | |||
89 | /** |
||
90 | * @inheritDoc |
||
91 | */ |
||
92 | public function rewind() |
||
96 | |||
97 | /** |
||
98 | * @inheritDoc |
||
99 | */ |
||
100 | public function count() |
||
104 | |||
105 | /** |
||
106 | * @param mixed $key |
||
107 | * |
||
108 | * @throws KeyIsNotDefinedException |
||
109 | */ |
||
110 | protected function assertContainsKey($key) |
||
116 | } |
||
117 |