Autarky\Routing\Route::getParams PHP Method

getParams() public method

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
return 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;
    }