public function getDefaultDomain()
    {
        if ($this->defaultDomain) {
            return $this->defaultDomain;
        } elseif ($first = $this->getDomains()->first()) {
            return $first->getDomain();
        } else {
            return null;
        }
    }
public function getDefaultDomain()
    {
        if ($this->defaultDomain) {
            return $this->defaultDomain;
        } elseif ($first = $this->getDomains()->first()) {
            return $first->getDomain();
        } else {
            return null;
        }
    }
public function getDefaultDomain ( ) { if ( $ this -> defaultDomain ) { return $ this -> defaultDomain ; } elseif ( $ first = $ this -> getDomains ( ) -> first ( ) ) { return $ first -> getDomain ( ) ; } else { return null ; } }
Get defaultDomain.

@return string
Get defaultDomain .