public function setExpressions(array $expressions)
    {
        $this->expressions = array();

        foreach ($expressions as $expression) {
            $this->addExpression($expression);
        }

        return $this;
    }
public function setExpressions(array $expressions)
    {
        $this->expressions = array();

        foreach ($expressions as $expression) {
            $this->addExpression($expression);
        }

        return $this;
    }
public function setExpressions ( array $ expressions ) { $ this -> expressions = array ( ) ; foreach ( $ expressions as $ expression ) { $ this -> addExpression ( $ expression ) ; } return $ this ; }
Set the set of subexpressions

@param LuceneExpression[] $expressions   The array of expressions
@return $this
Set the set of subexpressions