1 | <?php namespace BuildR\Collection\Collection; |
||
19 | abstract class AbstractCollection implements CollectionInterface { |
||
20 | |||
21 | /** |
||
22 | * @type array |
||
23 | */ |
||
24 | protected $data = []; |
||
25 | |||
26 | /** |
||
27 | * {@inheritdoc} |
||
28 | */ |
||
29 | 39 | public function toArray() { |
|
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | 2 | public function clear() { |
|
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | 1 | public function isEmpty() { |
|
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | 59 | public function size() { |
|
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | * |
||
57 | * @codeCoverageIgnore |
||
58 | */ |
||
59 | public function current() { |
||
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | * |
||
66 | * @codeCoverageIgnore |
||
67 | */ |
||
68 | public function next() { |
||
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | * |
||
75 | * @codeCoverageIgnore |
||
76 | */ |
||
77 | public function key() { |
||
80 | |||
81 | /** |
||
82 | * {@inheritdoc} |
||
83 | * |
||
84 | * @codeCoverageIgnore |
||
85 | */ |
||
86 | public function valid() { |
||
89 | |||
90 | /** |
||
91 | * {@inheritdoc} |
||
92 | * |
||
93 | * @codeCoverageIgnore |
||
94 | */ |
||
95 | public function rewind() { |
||
98 | |||
99 | /** |
||
100 | * {@inheritdoc} |
||
101 | */ |
||
102 | 40 | public function count() { |
|
105 | |||
106 | /** |
||
107 | * @param array|\BuildR\Collection\Collection\CollectionInterface $elements |
||
108 | * |
||
109 | * @return array |
||
110 | */ |
||
111 | 36 | protected function collectionToArray($elements) { |
|
118 | |||
119 | } |
||
120 |