protected static $category = self::CATEGORY_COMPARISON;
- protected static $params = [
- [
- 'expr' => 99,
- 'optional' => FALSE,
- ],
- ];
+ protected static $dataType = 'String';
+
+ protected static function params(): array {
+ return [
+ [
+ 'max_expr' => 99,
+ 'optional' => FALSE,
+ 'ui_defaults' => [
+ ['type' => 'SqlField', 'placeholder' => ts('If')],
+ ['type' => 'SqlField', 'placeholder' => ts('Else')],
+ ],
+ ],
+ ];
+ }
/**
* @return string
return ts('Coalesce');
}
+ /**
+ * @return string
+ */
+ public static function getDescription(): string {
+ return ts('The first value that is not null.');
+ }
+
}