public function allParamsFor(array $keys): array
    {
        $params = [];
        foreach ($keys as $key) {
            if (isset($this->params[$key])) {
                $params[$key] = $this->params[$key];
            }
        }

        return $params;
    }
public function allParamsFor(array $keys): array
    {
        $params = [];
        foreach ($keys as $key) {
            if (isset($this->params[$key])) {
                $params[$key] = $this->params[$key];
            }
        }

        return $params;
    }
public function allParamsFor ( array $ keys ) : array { $ params = [ ] ; foreach ( $ keys as $ key ) { if ( isset ( $ this -> params [ $ key ] ) ) { $ params [ $ key ] = $ this -> params [ $ key ] ; } } return $ params ; }
Get the parameters for the given keys as an associative array indexed by key
An empty array will be returned if there are no matched keys.

@param array $keys

@return array
Get the parameters for the given keys as an associative array indexed by key An empty array will be returned if there are no matched keys .