lib/Elastica/Query/Terms.php
public function setTerms(string $key, array $terms): self
    {
        $this->_key = $key;
        $this->_terms = \array_values($terms);

        return $this;
    }
public function setTerms(string $key, array $terms): self
    {
        $this->_key = $key;
        $this->_terms = \array_values($terms);

        return $this;
    }
public function setTerms ( string $ key , array $ terms ) : self { $ this -> _key = $ key ; $ this -> _terms = \ array_values ( $ terms ) ; return $ this ; }
Sets key and terms for the query.

@param string $key   terms key
@param array  $terms terms for the query

@return $this
Sets key and terms for the query .