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