/** * {@inheritdoc} */ public function associativeIntersect(CollectionInterface $collection) : CollectionInterface { return new self(array_intersect_assoc($this->values, $collection->toPrimitive())); }