public function setMapEntries(MapEntryCollection $mapEntries)
    {
        if (count($mapEntries) > 0) {
            $this->mapEntries = $mapEntries;
        } else {
            $msg = "A Mapping object must contain at least one MapEntry object, none given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setMapEntries(MapEntryCollection $mapEntries)
    {
        if (count($mapEntries) > 0) {
            $this->mapEntries = $mapEntries;
        } else {
            $msg = "A Mapping object must contain at least one MapEntry object, none given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setMapEntries ( MapEntryCollection $ mapEntries ) { if ( count ( $ mapEntries ) > 0 ) { $ this -> mapEntries = $ mapEntries ; } else { $ msg = "A Mapping object must contain at least one MapEntry object, none given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the collection of MapEntry objects which compose the Mapping.

@param \qtism\data\state\MapEntryCollection $mapEntries A collection of MapEntry objects with at least one item.
@throws \InvalidArgumentException If $mapEnties is an empty collection.
Set the collection of MapEntry objects which compose the Mapping .