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

            if (($maxChoices = $this->getMaxChoices()) > 0 && $minChoices > $maxChoices) {
                $msg = "The 'minChoices' argument must be less than or equal to the limits imposed by 'maxChoices'.";
                throw new InvalidArgumentException($msg);
            }

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

            if (($maxChoices = $this->getMaxChoices()) > 0 && $minChoices > $maxChoices) {
                $msg = "The 'minChoices' argument must be less than or equal to the limits imposed by 'maxChoices'.";
                throw new InvalidArgumentException($msg);
            }

            $this->minChoices = $minChoices;
        } else {
            $msg = "The 'minChoices' argument must be a strictly positive (> 0) integer or a negative integer, '" . gettype($minChoices) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setMinChoices ( $ minChoices ) { if ( is_int ( $ minChoices ) && $ minChoices >= 0 ) { if ( ( $ maxChoices = $ this -> getMaxChoices ( ) ) > 0 && $ minChoices > $ maxChoices ) { $ msg = "The 'minChoices' argument must be less than or equal to the limits imposed by 'maxChoices'." ; throw new InvalidArgumentException ( $ msg ) ; } $ this -> minChoices = $ minChoices ; } else { $ msg = "The 'minChoices' argument must be a strictly positive (> 0) integer or a negative integer, '" . gettype ( $ minChoices ) . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the minimum number of positions that the image must be placed to form a valid response
to the interaction.

@param integer $minChoices A strictly positive (> 0) integer that respects the limits imposed by 'maxChoices' or a negative integer to specify there is no 'minChoices'.
@throws \InvalidArgumentException If $minChoices is not a strictly positive integer of if it does not respect the limits imposed by 'maxChoices'.
Set the minimum number of positions that the image must be placed to form a valid response to the interaction .