public function setAreaMapEntries(AreaMapEntryCollection $areaMapEntries)
    {
        if (count($areaMapEntries) >= 1) {
            $this->areaMapEntries = $areaMapEntries;
        } else {
            $msg = "An AreaMapping object must contain at least one AreaMapEntry object. none given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setAreaMapEntries(AreaMapEntryCollection $areaMapEntries)
    {
        if (count($areaMapEntries) >= 1) {
            $this->areaMapEntries = $areaMapEntries;
        } else {
            $msg = "An AreaMapping object must contain at least one AreaMapEntry object. none given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setAreaMapEntries ( AreaMapEntryCollection $ areaMapEntries ) { if ( count ( $ areaMapEntries ) >= 1 ) { $ this -> areaMapEntries = $ areaMapEntries ; } else { $ msg = "An AreaMapping object must contain at least one AreaMapEntry object. none given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the collection of AreaMapEntry objects composing the AreaMapping.

@param \qtism\data\state\AreaMapEntryCollection $areaMapEntries A collection of AreaMapEntry objects.
Set the collection of AreaMapEntry objects composing the AreaMapping .