src/Traits/Collections/InternalCollectionTrait.php
protected function getInternalCollection(): ?Collection
    {
        if (!$this->hasInternalCollection()) {
            $this->setInternalCollection($this->getDefaultInternalCollection());
        }
        return $this->internalCollection;
    }
protected function getInternalCollection(): ?Collection
    {
        if (!$this->hasInternalCollection()) {
            $this->setInternalCollection($this->getDefaultInternalCollection());
        }
        return $this->internalCollection;
    }
protected function getInternalCollection ( ) : ? Collection { if ( ! $ this -> hasInternalCollection ( ) ) { $ this -> setInternalCollection ( $ this -> getDefaultInternalCollection ( ) ) ; } return $ this -> internalCollection ; }
Get internal collection

If no internal collection has been set, this method will
set and return a default internal collection, if any such
value is available

@see getDefaultInternalCollection()

@return Collection|null internal collection or null if none internal collection has been set
Get internal collection