src/AbstractCollection.php
final protected function isCollectionClass($collectionItem)
    {
        if(is_null($this->collectionClass)) {
            return true;
        } else {
            return is_a($collectionItem, $this->collectionClass->getValue());
        }
    }
final protected function isCollectionClass($collectionItem)
    {
        if(is_null($this->collectionClass)) {
            return true;
        } else {
            return is_a($collectionItem, $this->collectionClass->getValue());
        }
    }
final protected function isCollectionClass ( $ collectionItem ) { if ( is_null ( $ this -> collectionClass ) ) { return true ; } else { return is_a ( $ collectionItem , $ this -> collectionClass -> getValue ( ) ) ; } }
Checks if a proposed collection item is the correct collection item class.

@param mixed|CollectionItemInterface $collectionItem
@return bool
Checks if a proposed collection item is the correct collection item class .