public function setMaxChoices($maxChoices)
    {
        if (is_int($maxChoices) === true && $maxChoices >= 0) {
            $this->maxChoices = $maxChoices;
        } else {
            $msg = "The 'maxChoices' argument must be a positive (>= 0) integer, '" . gettype($maxChoices) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setMaxChoices($maxChoices)
    {
        if (is_int($maxChoices) === true && $maxChoices >= 0) {
            $this->maxChoices = $maxChoices;
        } else {
            $msg = "The 'maxChoices' argument must be a positive (>= 0) integer, '" . gettype($maxChoices) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setMaxChoices ( $ maxChoices ) { if ( is_int ( $ maxChoices ) === true && $ maxChoices >= 0 ) { $ this -> maxChoices = $ maxChoices ; } else { $ msg = "The 'maxChoices' argument must be a positive (>= 0) integer, '" . gettype ( $ maxChoices ) . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the maximum number of points that the candidate is allowed to select.

@param integer $maxChoices A positive (>= 0) integer.
@throws \InvalidArgumentException If $maxChoices is not a positive integer.
Set the maximum number of points that the candidate is allowed to select .