public function setMaxOperands($maxOperands)
    {
        if (is_int($maxOperands)) {
            $this->maxOperands = $maxOperands;
        } else {
            $msg = "The maxOperands argument must be an integer, '" . gettype($maxOperands) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setMaxOperands($maxOperands)
    {
        if (is_int($maxOperands)) {
            $this->maxOperands = $maxOperands;
        } else {
            $msg = "The maxOperands argument must be an integer, '" . gettype($maxOperands) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setMaxOperands ( $ maxOperands ) { if ( is_int ( $ maxOperands ) ) { $ this -> maxOperands = $ maxOperands ; } else { $ msg = "The maxOperands argument must be an integer, '" . gettype ( $ maxOperands ) . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the maxmimum operands count for this Operator. The value
is -1 if unlimited.

@param int $maxOperands
@throws \InvalidArgumentException If $maxOperands is not an integer.
Set the maxmimum operands count for this Operator . The value is - 1 if unlimited .