MediaWiki master
|
Convenience class for iterating over an array in reverse order. More...
Inherits Iterator, and Countable.
Public Member Functions | |
__construct ( $array=[]) | |
Creates an iterator which will visit the keys in $array in reverse order. | |
count () | |
current () | |
key () | |
next () | |
rewind () | |
valid () | |
Protected Attributes | |
array | $array |
Convenience class for iterating over an array in reverse order.
Definition at line 30 of file ReverseArrayIterator.php.
ReverseArrayIterator::__construct | ( | $array = [] | ) |
Creates an iterator which will visit the keys in $array in reverse order.
If given an object, will visit the properties of the object in reverse order. (Note that the default order for PHP arrays and objects is declaration/assignment order.)
@phpcs:ignore MediaWiki.Commenting.FunctionComment.ObjectTypeHintParam
array | object | $array |
Definition at line 44 of file ReverseArrayIterator.php.
References $array, rewind(), and wfDeprecated().
ReverseArrayIterator::count | ( | ) |
Definition at line 79 of file ReverseArrayIterator.php.
ReverseArrayIterator::current | ( | ) |
Definition at line 58 of file ReverseArrayIterator.php.
References current().
Referenced by current().
ReverseArrayIterator::key | ( | ) |
ReverseArrayIterator::next | ( | ) |
Definition at line 67 of file ReverseArrayIterator.php.
ReverseArrayIterator::rewind | ( | ) |
Definition at line 71 of file ReverseArrayIterator.php.
Referenced by __construct().
ReverseArrayIterator::valid | ( | ) |
Definition at line 75 of file ReverseArrayIterator.php.
|
protected |
Definition at line 32 of file ReverseArrayIterator.php.
Referenced by __construct().