public function getModel()
    {
        if (!$this->hasDependency('model') && !$this->model instanceof Model) {
            throw new Exceptions\NoModelSetException;
        }

        return $this->model;
    }
public function getModel()
    {
        if (!$this->hasDependency('model') && !$this->model instanceof Model) {
            throw new Exceptions\NoModelSetException;
        }

        return $this->model;
    }
public function getModel ( ) { if ( ! $ this -> hasDependency ( 'model' ) && ! $ this -> model instanceof Model ) { throw new Exceptions \ NoModelSetException ; } return $ this -> model ; }
Get repository model's instance.

@return Model

@throws Exceptions\NoModelSetException
Get repository model s instance .