public function getHostname()
    {
        if ($this->hostname === null) {
            $hostname = @gethostbyaddr($this->hostAddress);
            if ($hostname === false) {
                $hostname = $this->hostAddress;
            }
            $this->hostname = $hostname;
        }

        return $this->hostname;
    }
public function getHostname()
    {
        if ($this->hostname === null) {
            $hostname = @gethostbyaddr($this->hostAddress);
            if ($hostname === false) {
                $hostname = $this->hostAddress;
            }
            $this->hostname = $hostname;
        }

        return $this->hostname;
    }
public function getHostname ( ) { if ( $ this -> hostname === null ) { $ hostname = @ gethostbyaddr ( $ this -> hostAddress ) ; if ( $ hostname === false ) { $ hostname = $ this -> hostAddress ; } $ this -> hostname = $ hostname ; } return $ this -> hostname ; }
Gets the host name for this IP address.

@return string
Gets the host name for this IP address .