Doctrine\Common\Collections\Collection::contains
Checks whether an element is contained in the collection.
This is an O(n) operation, where n is the size of the collection.
Signature
public function contains(mixed
$element )
Parameters
$element
— mixed- The element to search for.
Returns
- boolean
- TRUE if the collection contains the element, FALSE otherwise.