public function setOperator($operator)
    {
        if ($this->allowedOperators && !in_array($operator, $this->allowedOperators)) {
            throw new UnsupportedParameterException('This constraint only accepts operators: ' . implode(',', $this->allowedOperators));
        }

        $this->operator = $operator;
        return $this;
    }
public function setOperator($operator)
    {
        if ($this->allowedOperators && !in_array($operator, $this->allowedOperators)) {
            throw new UnsupportedParameterException('This constraint only accepts operators: ' . implode(',', $this->allowedOperators));
        }

        $this->operator = $operator;
        return $this;
    }
public function setOperator ( $ operator ) { if ( $ this -> allowedOperators && ! in_array ( $ operator , $ this -> allowedOperators ) ) { throw new UnsupportedParameterException ( 'This constraint only accepts operators: ' . implode ( ',' , $ this -> allowedOperators ) ) ; } $ this -> operator = $ operator ; return $ this ; }
Set the operator of this constraint.

@param string $operator

@return self
Set the operator of this constraint .