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);
        }
    }