1 | <?php |
||
35 | class ClassMapList implements FileListInterface, \Countable |
||
36 | { |
||
37 | protected $list = array(); |
||
38 | |||
39 | /** |
||
40 | * Return the current element |
||
41 | * |
||
42 | * @link http://php.net/manual/en/iterator.current.php |
||
43 | * @return mixed Can return any type. |
||
44 | */ |
||
45 | 1 | public function current() |
|
49 | |||
50 | /** |
||
51 | * Move forward to next element |
||
52 | * |
||
53 | * @link http://php.net/manual/en/iterator.next.php |
||
54 | * @return void Any returned value is ignored. |
||
55 | */ |
||
56 | 1 | public function next() |
|
60 | |||
61 | /** |
||
62 | * Return the key of the current element |
||
63 | * |
||
64 | * @link http://php.net/manual/en/iterator.key.php |
||
65 | * @return mixed scalar on success, or null on failure. |
||
66 | */ |
||
67 | 1 | public function key() |
|
71 | |||
72 | /** |
||
73 | * (PHP 5 >= 5.0.0)<br/> |
||
74 | * Checks if current position is valid |
||
75 | * |
||
76 | * @link http://php.net/manual/en/iterator.valid.php |
||
77 | * @return boolean The return value will be casted to boolean and then evaluated. |
||
78 | * Returns true on success or false on failure. |
||
79 | */ |
||
80 | 1 | public function valid() |
|
84 | |||
85 | /** |
||
86 | * (PHP 5 >= 5.0.0)<br/> |
||
87 | * Rewind the Iterator to the first element |
||
88 | * |
||
89 | * @link http://php.net/manual/en/iterator.rewind.php |
||
90 | * @return void Any returned value is ignored. |
||
91 | */ |
||
92 | 1 | public function rewind() |
|
96 | |||
97 | /** |
||
98 | * Add an SPL-File-Info to the filelist |
||
99 | * |
||
100 | * @param \SplFileInfo $file |
||
101 | * |
||
102 | * @return void |
||
103 | */ |
||
104 | 4 | public function add(\SplFileInfo $file) |
|
119 | |||
120 | /** |
||
121 | * Clear all entries from the filelist |
||
122 | * |
||
123 | * @return void |
||
124 | */ |
||
125 | 3 | public function clear() |
|
129 | |||
130 | /** |
||
131 | * (PHP 5 >= 5.1.0)<br/> |
||
132 | * Count elements of an object |
||
133 | * |
||
134 | * @link http://php.net/manual/en/countable.count.php |
||
135 | * @return int The custom count as an integer. |
||
136 | * </p> |
||
137 | * <p> |
||
138 | * The return value is cast to an integer. |
||
139 | */ |
||
140 | 1 | public function count() |
|
144 | |||
145 | /** |
||
146 | * Get the content as array |
||
147 | * |
||
148 | * @return array |
||
149 | */ |
||
150 | 2 | public function toArray() |
|
154 | } |
||
155 |