Method |
Description |
|
__construct ( $type, array $items = [] ) |
Instantiates the collection by specifying what type of Object will be used. |
|
add ( $item ) |
|
|
at ( $index ) |
|
|
clear ( ) |
|
|
contains ( callable $condition ) |
|
|
count ( ) |
|
|
drop ( $num ) |
|
|
dropRight ( $num ) |
|
|
dropWhile ( callable $condition ) |
|
|
each ( callable $callable ) |
|
|
every ( callable $condition ) |
|
|
filter ( callable $condition ) |
|
|
find ( callable $condition ) |
|
|
findIndex ( callable $condition ) |
|
|
findLast ( callable $condition ) |
|
|
findLastIndex ( callable $condition ) |
|
|
getIterator ( ) |
|
|
getType ( ) |
|
|
indexExists ( $index ) |
|
|
insert ( $index, $item ) |
|
|
insertRange ( $index, array $items ) |
|
|
map ( callable $callable ) |
|
|
merge ( $items ) |
|
|
reduce ( callable $callable, $initial = null ) |
|
|
reduceRight ( callable $callable, $initial = null ) |
|
|
removeAt ( $index ) |
|
|
reverse ( ) |
|
|
shuffle ( ) |
|
|
slice ( $start, $end ) |
|
|
sort ( callable $callback ) |
|
|
tail ( ) |
|
|
take ( $num ) |
|
|
takeRight ( $num ) |
|
|
takeWhile ( callable $condition ) |
|
|
toArray ( ) |
|
|
without ( callable $condition ) |
|
|