public function setParams(array $params)
    {
        // Is this an associative array?
        if (!empty($params)) {
            if (\count(array_filter(array_keys($params), '\is_string')) < 1) {
                throw new ParseIncludesException('Parameters must be an associative array indexed by key');
            }
        }
        $this->params = $params;

        return $this;
    }
public function setParams(array $params)
    {
        // Is this an associative array?
        if (!empty($params)) {
            if (\count(array_filter(array_keys($params), '\is_string')) < 1) {
                throw new ParseIncludesException('Parameters must be an associative array indexed by key');
            }
        }
        $this->params = $params;

        return $this;
    }
public function setParams ( array $ params ) { // Is this an associative array? if ( ! empty ( $ params ) ) { if ( \ count ( array_filter ( array_keys ( $ params ) , '\is_string' ) ) < 1 ) { throw new ParseIncludesException ( 'Parameters must be an associative array indexed by key' ) ; } } $ this -> params = $ params ; return $ this ; }
An array of parameters indexed by key.

@param array $params

@throws ParseIncludesException

@return $this
An array of parameters indexed by key .