Doctrine\Common\Collections\Collection::forAll
Applies the given predicate p to all elements of this collection, returning true, if the predicate yields true for all elements.
Signature
public function forAll(Closure
$p )
Parameters
$p
— Closure- The predicate.
Returns
- boolean
- TRUE, if the predicate yields TRUE for all elements, FALSE otherwise.