Method |
Description |
|
__construct ( array $elements = [] ) |
Constructor. |
|
add ( mixed $key, mixed $element ) |
Adds a new element in this collection. |
|
all ( ) : array |
Gets the elements in this collection. |
|
clear ( ) |
Clears all elements in this collection. |
|
count ( ) : integer |
Gets the number of elements in this collection. |
|
get ( string $key ) : mixed |
Gets a element from the collection. |
|
getIterator ( ) : ArrayIterator |
Returns an iterator over the elements. |
|
has ( string $key ) : boolean |
Checks if a elements exists in the collection. |
|
keys ( ) : array |
Gets the keys registered in this collection. |
|
remove ( string $key ) |
Removes a element from the collection. |
|
set ( mixed $key, mixed $element ) |
Sets an element. |
|