public function setBaseType($baseType)
    {
        if ($baseType === -1 && $this->isRecord() === false) {
            $msg = "You are forced to specify a baseType if cardinality is not RECORD.";
            throw new InvalidArgumentException($msg);
        }

        $this->baseType = $baseType;
    }
public function setBaseType($baseType)
    {
        if ($baseType === -1 && $this->isRecord() === false) {
            $msg = "You are forced to specify a baseType if cardinality is not RECORD.";
            throw new InvalidArgumentException($msg);
        }

        $this->baseType = $baseType;
    }
public function setBaseType ( $ baseType ) { if ( $ baseType === - 1 && $ this -> isRecord ( ) === false ) { $ msg = "You are forced to specify a baseType if cardinality is not RECORD." ; throw new InvalidArgumentException ( $ msg ) ; } $ this -> baseType = $ baseType ; }
Set the baseType of the Variable.

@param integer $baseType A value from the Cardinality enumeration or -1 if there is no baseType in a Cardinality::RECORD context.
@throws \InvalidArgumentException If -1 is passed but Cardinality::RECORD is not set.
Set the baseType of the Variable .