private static function fetchFromDB($username) { try { $ue = new UserEmail($username); return $ue->getEmail(); } catch (fNotFoundException $e) { return NULL; } }
/** * @return UserEmail */ public function getEmail() { return $this->email->getEmail(); }