Doctrine\Common\Collections\ArrayCollection::filter
Returns all the elements of this collection that satisfy the predicate p.
The order of the elements is preserved.
Signature
public function filter(Closure
$p )
Parameters
$p
— Closure- The predicate used for filtering.
Returns
- Collection
- A collection with the results of the filter operation.