Coalesce implements CoalesceInterface
Read onlyYes
FinalYes
Evaluates to the first non-NULL value among the operands.
only to be used within Extbase, not part of TYPO3 Core API.
Table of Contents
Interfaces
- CoalesceInterface
- Evaluates to the first non-NULL value among the operands.
Methods
- __construct() : mixed
- getFunctionName() : string
- Returns the SQL function name.
- getOperands() : array<string|int, DynamicOperandInterface|string>
- Returns the operands of this function expression.
Methods
__construct()
public
__construct(array<string|int, DynamicOperandInterface|string> $operands) : mixed
Parameters
- $operands : array<string|int, DynamicOperandInterface|string>
getFunctionName()
Returns the SQL function name.
public
getFunctionName() : string
Return values
string —The function name (e.g., 'CONCAT', 'TRIM', 'COALESCE')
getOperands()
Returns the operands of this function expression.
public
getOperands() : array<string|int, DynamicOperandInterface|string>
Return values
array<string|int, DynamicOperandInterface|string> —The operands