src/Core/View/ViewModel.php
public function getRepository($name = null)
    {
        $name = strtolower($name);

        if ($name) {
            if (isset($this->repositories[$name])) {
                return $this->repositories[$name];
            }

            return $this->getNullRepository();
        }

        return $this->repository ?: $this->getNullRepository();
    }
public function getRepository($name = null)
    {
        $name = strtolower($name);

        if ($name) {
            if (isset($this->repositories[$name])) {
                return $this->repositories[$name];
            }

            return $this->getNullRepository();
        }

        return $this->repository ?: $this->getNullRepository();
    }
public function getRepository ( $ name = null ) { $ name = strtolower ( $ name ) ; if ( $ name ) { if ( isset ( $ this -> repositories [ $ name ] ) ) { return $ this -> repositories [ $ name ] ; } return $ this -> getNullRepository ( ) ; } return $ this -> repository ? : $ this -> getNullRepository ( ) ; }
Method to get property Model

@param  string $name

@return Repository
Method to get property Model