public function getParam($index)
    {
        if (!isset($this->params[$index])) {
            throw new \InvalidArgumentException('Route parameter does not exist at specified index');
        }

        return $this->params[$index];
    }
public function getParam($index)
    {
        if (!isset($this->params[$index])) {
            throw new \InvalidArgumentException('Route parameter does not exist at specified index');
        }

        return $this->params[$index];
    }
public function getParam ( $ index ) { if ( ! isset ( $ this -> params [ $ index ] ) ) { throw new \ InvalidArgumentException ( 'Route parameter does not exist at specified index' ) ; } return $ this -> params [ $ index ] ; }
Get route parameter value
@param  string                    $index Name of URL parameter
@return string
@throws \InvalidArgumentException        If route parameter does not exist at index
@api
Get route parameter value