public function getModel($modelId)
    {
        if (!$this->isRegistered($modelId)) {
            throw new PortableModelMissing($modelId);
        }
        return $this->getModelFromConfig($this->get($modelId));
    }
public function getModel($modelId)
    {
        if (!$this->isRegistered($modelId)) {
            throw new PortableModelMissing($modelId);
        }
        return $this->getModelFromConfig($this->get($modelId));
    }
public function getModel ( $ modelId ) { if ( ! $ this -> isRegistered ( $ modelId ) ) { throw new PortableModelMissing ( $ modelId ) ; } return $ this -> getModelFromConfig ( $ this -> get ( $ modelId ) ) ; }
Return model associated to the given string value

@param string $modelId
@return PortableElementModel
@throws PortableElementInconsistencyModelException
Return model associated to the given string value