private function getTypeFromRegistry(string $type, bool $isEntityId): Type
    {
        if ($this->types->isEntity($type) && $isEntityId) {
            return $this->types->getId($type);
        }

        if ($this->types->isEntity($type) && !$isEntityId) {
            return $this->types->getOutput($type);
        }

        return $this->types->get($type);
    }
private function getTypeFromRegistry(string $type, bool $isEntityId): Type
    {
        if ($this->types->isEntity($type) && $isEntityId) {
            return $this->types->getId($type);
        }

        if ($this->types->isEntity($type) && !$isEntityId) {
            return $this->types->getOutput($type);
        }

        return $this->types->get($type);
    }
private function getTypeFromRegistry ( string $ type , bool $ isEntityId ) : Type { if ( $ this -> types -> isEntity ( $ type ) && $ isEntityId ) { return $ this -> types -> getId ( $ type ) ; } if ( $ this -> types -> isEntity ( $ type ) && ! $ isEntityId ) { return $ this -> types -> getOutput ( $ type ) ; } return $ this -> types -> get ( $ type ) ; }
Returns a type from our registry

@param string $type
@param bool $isEntityId

@return Type
Returns a type from our registry