3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
12 namespace Civi\Api4\Query
;
17 class SqlFunctionISNULL
extends SqlFunction
{
19 protected static $category = self
::CATEGORY_COMPARISON
;
21 protected static $params = [
30 public static function getTitle(): string {
35 * Reformat result as boolean
37 * @see \Civi\Api4\Utils\FormattingUtil::formatOutputValues
38 * @param string $value
39 * @param string $dataType
40 * @return string|array
42 public function formatOutputValue($value, &$dataType) {
43 // Value is always TRUE or FALSE
44 $dataType = 'Boolean';