1 | <?php namespace BuildR\Collection\Collection; |
||
18 | abstract class AbstractCollection implements CollectionInterface { |
||
19 | |||
20 | /** |
||
21 | * @type array |
||
22 | */ |
||
23 | protected $data = []; |
||
24 | |||
25 | /** |
||
26 | * @type NULL|callable |
||
27 | */ |
||
28 | protected $typeChecker; |
||
29 | |||
30 | /** |
||
31 | * @type NULL|string |
||
32 | */ |
||
33 | protected $typeCheckFailMessage; |
||
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | public function setStrictType(callable $typeCheck, $message = NULL) { |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | public function isStrict() { |
||
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | */ |
||
53 | 39 | public function toArray() { |
|
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | 2 | public function clear() { |
|
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | 1 | public function isEmpty() { |
|
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | 59 | public function size() { |
|
77 | |||
78 | /** |
||
79 | * {@inheritdoc} |
||
80 | * |
||
81 | * @codeCoverageIgnore |
||
82 | */ |
||
83 | public function current() { |
||
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | * |
||
90 | * @codeCoverageIgnore |
||
91 | */ |
||
92 | public function next() { |
||
95 | |||
96 | /** |
||
97 | * {@inheritdoc} |
||
98 | * |
||
99 | * @codeCoverageIgnore |
||
100 | */ |
||
101 | public function key() { |
||
104 | |||
105 | /** |
||
106 | * {@inheritdoc} |
||
107 | * |
||
108 | * @codeCoverageIgnore |
||
109 | */ |
||
110 | public function valid() { |
||
113 | |||
114 | /** |
||
115 | * {@inheritdoc} |
||
116 | * |
||
117 | * @codeCoverageIgnore |
||
118 | */ |
||
119 | public function rewind() { |
||
122 | |||
123 | /** |
||
124 | * {@inheritdoc} |
||
125 | */ |
||
126 | 40 | public function count() { |
|
129 | |||
130 | /** |
||
131 | * Executes the type check if the collection is strict. Always |
||
132 | * returns true, when the collection is not strictly typed |
||
133 | * |
||
134 | * @param mixed $value |
||
135 | * |
||
136 | * @return bool |
||
137 | * |
||
138 | * @throws \BuildR\Collection\Exception\CollectionException |
||
139 | */ |
||
140 | protected function doTypeCheck($value) { |
||
153 | |||
154 | /** |
||
155 | * @param array|\BuildR\Collection\Collection\CollectionInterface $elements |
||
156 | * |
||
157 | * @return array |
||
158 | */ |
||
159 | 36 | protected function collectionToArray($elements) { |
|
166 | |||
167 | } |
||
168 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.