function CollectionInterface::intersect
Create a new collection with intersecting item between current and given collection.
Parameters
CollectionInterface<T> $other The collection to check for: intersecting items.
Return value
CollectionInterface<T>
Throws
CollectionMismatchException if the compared collections are of differing types.
1 method overrides CollectionInterface::intersect()
- AbstractCollection::intersect in vendor/
ramsey/ collection/ src/ AbstractCollection.php
File
-
vendor/
ramsey/ collection/ src/ CollectionInterface.php, line 239
Class
- CollectionInterface
- A collection represents a group of values, known as its elements.
Namespace
Ramsey\CollectionCode
public function intersect(CollectionInterface $other) : self;