public function setGapChoices(GapChoiceCollection $gapChoices)
    {
        if (count($gapChoices) > 0) {
            $this->gapChoices = $gapChoices;
        } else {
            $msg = "A GapMatchInteraction object must be composed of at least one GapChoice object, none given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setGapChoices(GapChoiceCollection $gapChoices)
    {
        if (count($gapChoices) > 0) {
            $this->gapChoices = $gapChoices;
        } else {
            $msg = "A GapMatchInteraction object must be composed of at least one GapChoice object, none given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setGapChoices ( GapChoiceCollection $ gapChoices ) { if ( count ( $ gapChoices ) > 0 ) { $ this -> gapChoices = $ gapChoices ; } else { $ msg = "A GapMatchInteraction object must be composed of at least one GapChoice object, none given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the collection of choices for filling the gaps.

@param \qtism\data\content\interactions\GapChoiceCollection $gapChoices A collection of at least one GapChoice object.
@throws \InvalidArgumentException If $gapChoices is empty.
Set the collection of choices for filling the gaps .