public static function generate() { $city = new City(); $city->set(Location::NAME, self::getRandomName()); return $city; }