- /**
- * Reformat result as integer
- *
- * @see \Civi\Api4\Utils\FormattingUtil::formatOutputValues
- * @param string $value
- * @param string $dataType
- * @return string|array
- */
- public function formatOutputValue($value, &$dataType) {
- // Count is always an integer
- $dataType = 'Integer';
- return (int) $value;
+ protected static function params(): array {
+ return [
+ [
+ 'flag_before' => ['DISTINCT' => ts('Distinct')],
+ 'max_expr' => 1,
+ 'must_be' => ['SqlField', 'SqlWild'],
+ ],
+ ];