Method |
Description |
|
__construct ( string $objectName = "{{foo}}" ) |
Instantiates the collection by specifying what type of Object will be used. |
|
at ( integer $index ) : {{foo}} |
Fetches the item at the specified index |
|
find ( callable $condition ) : {{foo}} |
Finds and returns the first item in the collection that satisfies the callback. |
|
findAll ( callable $condition ) : {{FooCollection}} |
Returns a collection of all items that satisfy the callback function. If nothing is found, returns an empty
Collection |
|
findLast ( callable $condition ) : {{foo}} |
Finds and returns the last item in the collection that satisfies the callback. |
|
getRange ( integer $start, integer $end ) : {{FooCollection}} |
Get a range of items in the collection |
|