public function setExpressions(array $expressions)
    {
        foreach ($expressions as $expression) {
            if (! $expression instanceof AbstractExpression) {
                throw new \InvalidArgumentException(
                    'Error: Expected array of AbstractExpression but got something else'
                );
            }
        }

        $this->expressions = $expressions;
    }
public function setExpressions(array $expressions)
    {
        foreach ($expressions as $expression) {
            if (! $expression instanceof AbstractExpression) {
                throw new \InvalidArgumentException(
                    'Error: Expected array of AbstractExpression but got something else'
                );
            }
        }

        $this->expressions = $expressions;
    }
public function setExpressions ( array $ expressions ) { foreach ( $ expressions as $ expression ) { if ( ! $ expression instanceof AbstractExpression ) { throw new \ InvalidArgumentException ( 'Error: Expected array of AbstractExpression but got something else' ) ; } } $ this -> expressions = $ expressions ; }
Setter for the expressions array

@param AbstractExpression[] $expressions
Setter for the expressions array