pubkey = $pubkey; } public function getPubkey () { return $this->pubkey; } public function setName ($name) { $this->name = $name; } public function getName () { if (isset($this->name)) { return $this->name; } else { return substr($this->pubkey, 0, 8); } } public function setAvatar ($content, $contentType) { $this->avatar = new Avatar($content, $contentType); } public function hasAvatar ($bool = null) { if (isset($bool)) { $this->hasAvatar = $bool; } else { return $this->hasAvatar; } } public function getAvatar () { return $this->avatar; } public function setCity ($city) { $this->city = $city; } public function getCity () { return $this->city; } public function setGeoPoint ($lon, $lat) { $this->geoPoint = new GeoPoint($lon, $lat); } public function getGeoPoint () { return $this->geoPoint; } }