public function paramsFor(string $key): array
    {
        $params = [];
        if (isset($this->params[$key])) {
            $params = $this->params[$key];
        }

        return $params;
    }
public function paramsFor(string $key): array
    {
        $params = [];
        if (isset($this->params[$key])) {
            $params = $this->params[$key];
        }

        return $params;
    }
public function paramsFor ( string $ key ) : array { $ params = [ ] ; if ( isset ( $ this -> params [ $ key ] ) ) { $ params = $ this -> params [ $ key ] ; } return $ params ; }
Get the parameters for the given key
An empty array will be returned for non-matched keys.

@param string $key

@return array
Get the parameters for the given key An empty array will be returned for non - matched keys .