'男', self::GENDER_FEMALE => '女', self::GENDER_UNKNOWN => '未知', ]; } public static function getGenderText($gender) { return self::getGenderMap()[$gender] ?? '未知'; } public static function getGenderList() { return [ self::GENDER_MALE, self::GENDER_FEMALE, self::GENDER_UNKNOWN, ]; } }