public function setAssociableHotspots(AssociableHotspotCollection $associableHotspots)
    {
        if (count($associableHotspots) > 0) {
            $this->associableHotspots = $associableHotspots;
        } else {
            $msg = "A GraphicGapMatch interaction must be composed of at least 1 AssociableHotspot object, none given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setAssociableHotspots(AssociableHotspotCollection $associableHotspots)
    {
        if (count($associableHotspots) > 0) {
            $this->associableHotspots = $associableHotspots;
        } else {
            $msg = "A GraphicGapMatch interaction must be composed of at least 1 AssociableHotspot object, none given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setAssociableHotspots ( AssociableHotspotCollection $ associableHotspots ) { if ( count ( $ associableHotspots ) > 0 ) { $ this -> associableHotspots = $ associableHotspots ; } else { $ msg = "A GraphicGapMatch interaction must be composed of at least 1 AssociableHotspot object, none given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the hotspots that define the gaps that are to be filled by the candidate.

@param \qtism\data\content\interactions\AssociableHotspotCollection $associableHotspots A collection of AssociableHotspot objects.
@throws \InvalidArgumentException If $associableHotspots is empty.
Set the hotspots that define the gaps that are to be filled by the candidate .