public function getFullHost()
    {
        // Case 1: Host hasn't suffix, possibly IP.

        if (null === $this->suffix) {
            return $this->hostname;
        }

        // Case 2: Domain with suffix, but without subdomain.

        if (null === $this->subdomain) {
            return $this->hostname . '.' . $this->suffix;
        }

        // Case 3: Domain with suffix & subdomain.

        return implode('.', [$this->subdomain, $this->hostname, $this->suffix]);
    }
public function getFullHost()
    {
        // Case 1: Host hasn't suffix, possibly IP.

        if (null === $this->suffix) {
            return $this->hostname;
        }

        // Case 2: Domain with suffix, but without subdomain.

        if (null === $this->subdomain) {
            return $this->hostname . '.' . $this->suffix;
        }

        // Case 3: Domain with suffix & subdomain.

        return implode('.', [$this->subdomain, $this->hostname, $this->suffix]);
    }
public function getFullHost ( ) { // Case 1: Host hasn't suffix, possibly IP. if ( null === $ this -> suffix ) { return $ this -> hostname ; } // Case 2: Domain with suffix, but without subdomain. if ( null === $ this -> subdomain ) { return $ this -> hostname . '.' . $ this -> suffix ; } // Case 3: Domain with suffix & subdomain. return implode ( '.' , [ $ this -> subdomain , $ this -> hostname , $ this -> suffix ] ) ; }
Method that returns full host record.

@return string
Method that returns full host record .