public function setDomain(Domain $domain)
    {
        $this->domain = $domain;
        $this->domainId = $domain->getDomainId();
    }
public function setDomain(Domain $domain)
    {
        $this->domain = $domain;
        $this->domainId = $domain->getDomainId();
    }
public function setDomain ( Domain $ domain ) { $ this -> domain = $ domain ; $ this -> domainId = $ domain -> getDomainId ( ) ; }
Add a domain to the site

@param Domain $domain Domain object to add

@return void
Add a domain to the site