public function setMinChoices($minChoices)
    {
        if (is_int($minChoices) && $minChoices > 0) {

            if ($minChoices > $this->getMaxChoices() && $this->getMaxChoices() > 0) {
                $msg = "The 'minChoices' argument must respect the limits imposed by 'maxChoices'.";
                throw new InvalidArgumentException($msg);
            } else {
                $this->minChoices = $minChoices;
            }
        } elseif (is_int($minChoices) && $minChoices === 0) {
            $this->minChoices = $minChoices;
        } else {
            $msg = "The 'minChoices' argument must be a positive (>= 0) integer value, '" . gettype($minChoices) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setMinChoices($minChoices)
    {
        if (is_int($minChoices) && $minChoices > 0) {

            if ($minChoices > $this->getMaxChoices() && $this->getMaxChoices() > 0) {
                $msg = "The 'minChoices' argument must respect the limits imposed by 'maxChoices'.";
                throw new InvalidArgumentException($msg);
            } else {
                $this->minChoices = $minChoices;
            }
        } elseif (is_int($minChoices) && $minChoices === 0) {
            $this->minChoices = $minChoices;
        } else {
            $msg = "The 'minChoices' argument must be a positive (>= 0) integer value, '" . gettype($minChoices) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setMinChoices ( $ minChoices ) { if ( is_int ( $ minChoices ) && $ minChoices > 0 ) { if ( $ minChoices > $ this -> getMaxChoices ( ) && $ this -> getMaxChoices ( ) > 0 ) { $ msg = "The 'minChoices' argument must respect the limits imposed by 'maxChoices'." ; throw new InvalidArgumentException ( $ msg ) ; } else { $ this -> minChoices = $ minChoices ; } } elseif ( is_int ( $ minChoices ) && $ minChoices === 0 ) { $ this -> minChoices = $ minChoices ; } else { $ msg = "The 'minChoices' argument must be a positive (>= 0) integer value, '" . gettype ( $ minChoices ) . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the minimum number of choices that the candidate is required to select to form a valid response.

@param integer $minChoices A positive (>= 0) integer.
@throws \InvalidArgumentException If $minChoices is not a positive integer or does not respect the limits imposed by maxChoices.
Set the minimum number of choices that the candidate is required to select to form a valid response .