|
@@ -3,10 +3,10 @@
|
|
|
class Util {
|
|
class Util {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * @param string $gender
|
|
|
|
|
|
|
+ * @param string|null $gender
|
|
|
* @return string
|
|
* @return string
|
|
|
*/
|
|
*/
|
|
|
- public static function getGenderText(string $gender): string {
|
|
|
|
|
|
|
+ public static function getGenderText(?string $gender): string {
|
|
|
switch($gender) {
|
|
switch($gender) {
|
|
|
case "M": return MALE;
|
|
case "M": return MALE;
|
|
|
case "F": return FEMALE;
|
|
case "F": return FEMALE;
|
|
@@ -15,10 +15,10 @@ class Util {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * @param string $boolean
|
|
|
|
|
|
|
+ * @param string|null $boolean
|
|
|
* @return string
|
|
* @return string
|
|
|
*/
|
|
*/
|
|
|
- public static function getBooleanText(string $boolean): string {
|
|
|
|
|
|
|
+ public static function getBooleanText(?string $boolean): string {
|
|
|
switch($boolean) {
|
|
switch($boolean) {
|
|
|
case "Y": return YES;
|
|
case "Y": return YES;
|
|
|
case "N": return NO;
|
|
case "N": return NO;
|