public function setPrimaryDomain($primaryDomain)
    {
        if (empty($primaryDomain)) {
            $this->primaryDomain = null;
            $this->primaryId = null;

            return;
        }

        $this->primaryDomain = $primaryDomain;
        $this->primaryId = $primaryDomain->getDomainId();
    }
public function setPrimaryDomain($primaryDomain)
    {
        if (empty($primaryDomain)) {
            $this->primaryDomain = null;
            $this->primaryId = null;

            return;
        }

        $this->primaryDomain = $primaryDomain;
        $this->primaryId = $primaryDomain->getDomainId();
    }
public function setPrimaryDomain ( $ primaryDomain ) { if ( empty ( $ primaryDomain ) ) { $ this -> primaryDomain = null ; $ this -> primaryId = null ; return ; } $ this -> primaryDomain = $ primaryDomain ; $ this -> primaryId = $ primaryDomain -> getDomainId ( ) ; }
Set the Primary Domain.

@param Domain|null $primaryDomain

@return void
Set the Primary Domain .