1 | <?php |
||
7 | abstract class Pool implements DatasetInterface |
||
8 | { |
||
9 | protected $dataset; |
||
10 | |||
11 | /** |
||
12 | * Contructor. |
||
13 | */ |
||
14 | public function __construct() |
||
18 | |||
19 | /** |
||
20 | * Initializes a pool of elements. |
||
21 | * |
||
22 | * @return Pool |
||
23 | */ |
||
24 | public function init() |
||
30 | |||
31 | /** |
||
32 | * Erase all information from dataset. |
||
33 | * |
||
34 | * @return Pool |
||
35 | */ |
||
36 | public function reset() |
||
46 | |||
47 | /** |
||
48 | * Checks if this element exists in this dataset. |
||
49 | * |
||
50 | * @param int $index |
||
51 | * |
||
52 | * @return bool |
||
53 | */ |
||
54 | public function has($index) |
||
62 | |||
63 | /** |
||
64 | * @aliasof has |
||
65 | * |
||
66 | * @param int $index |
||
67 | * |
||
68 | * @return bool |
||
69 | */ |
||
70 | public function exists($index) |
||
74 | |||
75 | /** |
||
76 | * Returns the element in this index from the dataset. |
||
77 | * |
||
78 | * @param int $index |
||
79 | * |
||
80 | * @return mixed |
||
81 | */ |
||
82 | public function elem($index) |
||
89 | |||
90 | /** |
||
91 | * Function will show how to deal with the element. |
||
92 | * |
||
93 | * @param array $element |
||
94 | * |
||
95 | * @return mixed |
||
96 | */ |
||
97 | abstract public function cast($element); |
||
98 | |||
99 | /** |
||
100 | * Adds an element to the dataset. |
||
101 | * |
||
102 | * @param array $element |
||
103 | */ |
||
104 | public function add($element) |
||
108 | |||
109 | /** |
||
110 | * Return number of elements. |
||
111 | * |
||
112 | * @return int |
||
113 | */ |
||
114 | public function count() |
||
118 | } |
||
119 |
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.