1 | <?php |
||
14 | class _IteratorAdapter implements \Iterator |
||
15 | { |
||
16 | private $objectStorage; |
||
17 | |||
18 | public function __construct(\SplObjectStorage $theObjectStorage) |
||
22 | |||
23 | /** |
||
24 | * Return the current element |
||
25 | * @link http://php.net/manual/en/iterator.current.php |
||
26 | * @return mixed Can return any type. |
||
27 | * @since 5.0.0 |
||
28 | */ |
||
29 | public function current() |
||
33 | |||
34 | /** |
||
35 | * Move forward to next element |
||
36 | * @link http://php.net/manual/en/iterator.next.php |
||
37 | * @return void Any returned value is ignored. |
||
38 | * @since 5.0.0 |
||
39 | */ |
||
40 | public function next() |
||
44 | |||
45 | /** |
||
46 | * Return the key of the current element |
||
47 | * @link http://php.net/manual/en/iterator.key.php |
||
48 | * @return mixed scalar on success, or null on failure. |
||
49 | * @since 5.0.0 |
||
50 | */ |
||
51 | public function key() |
||
55 | |||
56 | /** |
||
57 | * Checks if current position is valid |
||
58 | * @link http://php.net/manual/en/iterator.valid.php |
||
59 | * @return boolean The return value will be casted to boolean and then evaluated. |
||
60 | * Returns true on success or false on failure. |
||
61 | * @since 5.0.0 |
||
62 | */ |
||
63 | public function valid() |
||
67 | |||
68 | /** |
||
69 | * Rewind the Iterator to the first element |
||
70 | * @link http://php.net/manual/en/iterator.rewind.php |
||
71 | * @return void Any returned value is ignored. |
||
72 | * @since 5.0.0 |
||
73 | */ |
||
74 | public function rewind() |
||
78 | } |