final class JsonAggregateFuncWithJsonArrayaggJsonValueExprJsonArrayAggregateOrderByClauseOptJsonArrayConstru_f339643a
    implements FuncExprWindowlessForm, JsonAggregateFuncForm, StatsParamForm, StatsParamsForm
    uses Assertion
Public API: explicitly declared with @visibility public.

The json_aggregate_func SQL value; generated by bin/build-models.php.

Accept a structured SQL valuedoctest
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\JsonAggregateFuncWithJsonArrayaggJsonValueExprJsonArrayAggregateOrderByClauseOptJsonArrayConstru_f339643a $value): string => \SqlSemantics\Statement\Writer::render($value);
    $write instanceof \Closure // => true

Properties§

public JsonValueExprForm $jsonValueExpr
public JsonArrayAggregateOrderByClauseOptForm $jsonArrayAggregateOrderByClauseOpt
public JsonArrayConstructorNullClauseOptForm $jsonArrayConstructorNullClauseOpt
public JsonReturningClauseOptForm $jsonReturningClauseOpt
public Comments $comments = new \SqlSemantics\Statement\Comments()

Methods§

public function __construct(
    public JsonValueExprForm $jsonValueExpr,
    public JsonArrayAggregateOrderByClauseOptForm $jsonArrayAggregateOrderByClauseOpt,
    public JsonArrayConstructorNullClauseOptForm $jsonArrayConstructorNullClauseOpt,
    public JsonReturningClauseOptForm $jsonReturningClauseOpt,
    public Comments $comments = new \SqlSemantics\Statement\Comments(),
)

Supplies the SQL values of this form; comments are kept by the position of the symbol each precedes.

Parameters

$jsonValueExprJsonValueExprForm
$jsonArrayAggregateOrderByClauseOptJsonArrayAggregateOrderByClauseOptForm
$jsonArrayConstructorNullClauseOptJsonArrayConstructorNullClauseOptForm
$jsonReturningClauseOptJsonReturningClauseOptForm
$commentsComments
Calls 3
public function write(Writer $writer): void
public function withJsonValueExpr(JsonValueExprForm $jsonValueExpr): self

Returns a copy with a new jsonValueExpr, preserving every other field.

Parameters

$jsonValueExprJsonValueExprForm

Returns

self
Calls 1
public function withJsonArrayAggregateOrderByClauseOpt(JsonArrayAggregateOrderByClauseOptForm $jsonArrayAggregateOrderByClauseOpt): self

Returns a copy with a new jsonArrayAggregateOrderByClauseOpt, preserving every other field.

Parameters

$jsonArrayAggregateOrderByClauseOptJsonArrayAggregateOrderByClauseOptForm

Returns

self
Calls 1
public function withJsonArrayConstructorNullClauseOpt(JsonArrayConstructorNullClauseOptForm $jsonArrayConstructorNullClauseOpt): self

Returns a copy with a new jsonArrayConstructorNullClauseOpt, preserving every other field.

Parameters

$jsonArrayConstructorNullClauseOptJsonArrayConstructorNullClauseOptForm

Returns

self
Calls 1
public function withJsonReturningClauseOpt(JsonReturningClauseOptForm $jsonReturningClauseOpt): self

Returns a copy with a new jsonReturningClauseOpt, preserving every other field.

Parameters

$jsonReturningClauseOptJsonReturningClauseOptForm

Returns

self
Calls 1
public function withComments(Comments $comments): self

Returns a copy with a new comments, preserving every other field.

Parameters

$commentsComments

Returns

self
Calls 1