4
4
5
5
class BookListReverseIterator implements \Iterator
6
6
{
7
-
8
7
/**
9
8
* @var BookList
10
9
*/
@@ -22,8 +21,10 @@ public function __construct(BookList $bookList)
22
21
}
23
22
24
23
/**
25
- * Return the current book
24
+ * Return the current book.
25
+ *
26
26
* @link http://php.net/manual/en/iterator.current.php
27
+ *
27
28
* @return Book Can return any type.
28
29
*/
29
30
public function current ()
@@ -33,8 +34,10 @@ public function current()
33
34
34
35
/**
35
36
* (PHP 5 >= 5.0.0)<br/>
36
- * Move forward to next element
37
+ * Move forward to next element.
38
+ *
37
39
* @link http://php.net/manual/en/iterator.next.php
40
+ *
38
41
* @return void Any returned value is ignored.
39
42
*/
40
43
public function next ()
@@ -44,8 +47,10 @@ public function next()
44
47
45
48
/**
46
49
* (PHP 5 >= 5.0.0)<br/>
47
- * Return the key of the current element
50
+ * Return the key of the current element.
51
+ *
48
52
* @link http://php.net/manual/en/iterator.key.php
53
+ *
49
54
* @return mixed scalar on success, or null on failure.
50
55
*/
51
56
public function key ()
@@ -55,10 +60,12 @@ public function key()
55
60
56
61
/**
57
62
* (PHP 5 >= 5.0.0)<br/>
58
- * Checks if current position is valid
63
+ * Checks if current position is valid.
64
+ *
59
65
* @link http://php.net/manual/en/iterator.valid.php
60
- * @return boolean The return value will be casted to boolean and then evaluated.
61
- * Returns true on success or false on failure.
66
+ *
67
+ * @return bool The return value will be casted to boolean and then evaluated.
68
+ * Returns true on success or false on failure.
62
69
*/
63
70
public function valid ()
64
71
{
@@ -67,8 +74,10 @@ public function valid()
67
74
68
75
/**
69
76
* (PHP 5 >= 5.0.0)<br/>
70
- * Rewind the Iterator to the first element
77
+ * Rewind the Iterator to the first element.
78
+ *
71
79
* @link http://php.net/manual/en/iterator.rewind.php
80
+ *
72
81
* @return void Any returned value is ignored.
73
82
*/
74
83
public function rewind ()
0 commit comments