public static function getTypeDescription(?string $type): ?string
    {
        $descriptions = self::typeDescriptions();
        if (isset($descriptions[$type])) {
            return $descriptions[$type];
        }

        return $type;
    }
public static function getTypeDescription(?string $type): ?string
    {
        $descriptions = self::typeDescriptions();
        if (isset($descriptions[$type])) {
            return $descriptions[$type];
        }

        return $type;
    }
public static function getTypeDescription ( ? string $ type ) : ? string { $ descriptions = self :: typeDescriptions ( ) ; if ( isset ( $ descriptions [ $ type ] ) ) { return $ descriptions [ $ type ] ; } return $ type ; }
Get the description for the given type

@param string|null $type type to get description of
@return string
Get the description for the given type