WithCollection
trait WithCollection
Methods
int
count()
No description
array
toArray()
No description
mixed
first()
No description
mixed
firstOr(mixed $default)
No description
bool
any(callable $callable)
Determines if at least an element of the collection satisfies a condition.
bool
all(callable $callable)
Determines if all elements of the collection satisfies a condition.
Details
at line 12
abstract int
count()
No description
at line 13
abstract array
toArray()
No description
at line 15
mixed
first()
No description
at line 23
mixed
firstOr(mixed $default)
No description
at line 45
bool
any(callable $callable)
Determines if at least an element of the collection satisfies a condition.
The execution of callbacks stop after a callable returned true.
at line 78
bool
all(callable $callable)
Determines if all elements of the collection satisfies a condition.
The execution of callbacks stop after a callable returned false.