public function getHostname() { if (is_null($this->hostname)) { $this->hostname = gethostbyaddr($this->ip); } return $this->hostname; }