protected function setBaseType($baseType)
    {
        if (in_array($baseType, BaseType::asArray())) {
            $this->baseType = $baseType;
        } else {
            $msg = 'The baseType argument must be a valid QTI baseType value from the BaseType enumeration.';
            throw new InvalidArgumentException($msg);
        }
    }
protected function setBaseType($baseType)
    {
        if (in_array($baseType, BaseType::asArray())) {
            $this->baseType = $baseType;
        } else {
            $msg = 'The baseType argument must be a valid QTI baseType value from the BaseType enumeration.';
            throw new InvalidArgumentException($msg);
        }
    }
protected function setBaseType ( $ baseType ) { if ( in_array ( $ baseType , BaseType :: asArray ( ) ) ) { $ this -> baseType = $ baseType ; } else { $ msg = 'The baseType argument must be a valid QTI baseType value from the BaseType enumeration.' ; throw new InvalidArgumentException ( $ msg ) ; } }
Set a baseType to this marshaller implementation in order
to force the datatype used for the unserialization of the
'mapKey' attribute.

@param int $baseType A baseType from the BaseType enumeration.
@throws \InvalidArgumentException If $baseType is not a value from the BaseType enumeration.
Set a baseType to this marshaller implementation in order to force the datatype used for the unserialization of the mapKey attribute .