public function setHotspotChoices(HotspotChoiceCollection $hotspotChoices)
    {
        if (count($hotspotChoices) > 0) {
            $this->hotspotChoices = $hotspotChoices;
        } else {
            $msg = "A GraphicOrderInteraction must contain at least 1 hotspotChoice object. None given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setHotspotChoices(HotspotChoiceCollection $hotspotChoices)
    {
        if (count($hotspotChoices) > 0) {
            $this->hotspotChoices = $hotspotChoices;
        } else {
            $msg = "A GraphicOrderInteraction must contain at least 1 hotspotChoice object. None given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setHotspotChoices ( HotspotChoiceCollection $ hotspotChoices ) { if ( count ( $ hotspotChoices ) > 0 ) { $ this -> hotspotChoices = $ hotspotChoices ; } else { $ msg = "A GraphicOrderInteraction must contain at least 1 hotspotChoice object. None given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the hotspots that define the choices that are to be ordered by the candidate.

@param \qtism\data\content\interactions\HotspotChoiceCollection $hotspotChoices A collection of HotspotChoice objects.
@throws \InvalidArgumentException If the given $hotspotChoices collection is empty.
Set the hotspots that define the choices that are to be ordered by the candidate .