1 | <?php |
||
5 | abstract class MutableCollection implements CollectionInterface |
||
6 | { |
||
7 | /** |
||
8 | * @var \SplFixedArray |
||
9 | */ |
||
10 | protected $set; |
||
11 | |||
12 | /** |
||
13 | * @return array |
||
14 | */ |
||
15 | public function all() |
||
19 | |||
20 | /** |
||
21 | * @return bool |
||
22 | */ |
||
23 | public function isNull() |
||
27 | |||
28 | /** |
||
29 | * @return int |
||
30 | */ |
||
31 | 94 | public function count() |
|
35 | |||
36 | /** |
||
37 | * |
||
38 | */ |
||
39 | public function rewind() |
||
43 | |||
44 | /** |
||
45 | * @return mixed |
||
46 | */ |
||
47 | 12 | public function current() |
|
51 | |||
52 | /** |
||
53 | * @return int |
||
54 | */ |
||
55 | 94 | public function key() |
|
59 | |||
60 | /** |
||
61 | * |
||
62 | */ |
||
63 | 94 | public function next() |
|
67 | |||
68 | /** |
||
69 | * @return bool |
||
70 | */ |
||
71 | public function valid() |
||
75 | |||
76 | /** |
||
77 | * @param int $offset |
||
78 | * @return bool |
||
79 | */ |
||
80 | public function offsetExists($offset) |
||
84 | |||
85 | /** |
||
86 | * @param int $offset |
||
87 | */ |
||
88 | public function offsetUnset($offset) |
||
96 | |||
97 | /** |
||
98 | * @param int $offset |
||
99 | * @return mixed |
||
100 | */ |
||
101 | public function offsetGet($offset) |
||
108 | |||
109 | /** |
||
110 | * @param int $offset |
||
111 | * @param mixed $value |
||
112 | */ |
||
113 | public function offsetSet($offset, $value) |
||
117 | } |
||
118 |