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

            if ($minChoices > count($this->getHotspotChoices())) {
                $msg = "The 'minChoices' argument must not exceed the number of choices available.";
                throw new InvalidArgumentException($msg);
            }

            $this->minChoices = $minChoices;
        } else {
            $msg = "The 'minChoices' argument must be a strictly negative or positive integer, '" . gettype($minChoices) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setMinChoices($minChoices)
    {
        if (is_int($minChoices) && $minChoices !== 0) {

            if ($minChoices > count($this->getHotspotChoices())) {
                $msg = "The 'minChoices' argument must not exceed the number of choices available.";
                throw new InvalidArgumentException($msg);
            }

            $this->minChoices = $minChoices;
        } else {
            $msg = "The 'minChoices' argument must be a strictly negative or positive integer, '" . gettype($minChoices) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setMinChoices ( $ minChoices ) { if ( is_int ( $ minChoices ) && $ minChoices !== 0 ) { if ( $ minChoices > count ( $ this -> getHotspotChoices ( ) ) ) { $ msg = "The 'minChoices' argument must not exceed the number of choices available." ; throw new InvalidArgumentException ( $ msg ) ; } $ this -> minChoices = $ minChoices ; } else { $ msg = "The 'minChoices' argument must be a strictly negative or positive integer, '" . gettype ( $ minChoices ) . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the minimum number of choices that the candidate must select and order to form a valid response. A negative
value indicates that no minChoice is indicated.

@param integer $minChoices A strictly negative or positive integer.
@throws \InvalidArgumentException If $minChoice is not a strictly negative or positive integer.
Set the minimum number of choices that the candidate must select and order to form a valid response . A negative value indicates that no minChoice is indicated .