Autarky\Routing\Route::getParams PHP 메소드

getParams() 공개 메소드

Get the parameters. Can only be called on a route that has been matched against an URI (i.e. setParams has been called)
public getParams ( ) : array
리턴 array
    public function getParams()
    {
        if ($this->params === null) {
            throw new \BadMethodCallException("Cannot get params from a route that has not been matched yet");
        }
        return $this->params;
    }