final class PlAssignStmtWithPlassignTargetOptIndirectionPlassignEqualsPLpgSqlExpr_24b1361f
    implements PlAssignStmtForm
    uses Assertion
Public API: explicitly declared with @visibility public.

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

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

Properties§

public PlassignTargetForm $plassignTarget
public OptIndirectionForm $optIndirection
public PlassignEqualsForm $plassignEquals
public PLpgSqlExprForm $pLpgSqlExpr
public Comments $comments = new \SqlSemantics\Statement\Comments()

Methods§

public function __construct(
    public PlassignTargetForm $plassignTarget,
    public OptIndirectionForm $optIndirection,
    public PlassignEqualsForm $plassignEquals,
    public PLpgSqlExprForm $pLpgSqlExpr,
    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

$plassignTargetPlassignTargetForm
$optIndirectionOptIndirectionForm
$plassignEqualsPlassignEqualsForm
$pLpgSqlExprPLpgSqlExprForm
$commentsComments
Calls 3
public function write(Writer $writer): void

Writes SQL entirely from this value's fields.

Parameters

$writerWriter
Calls 5
public function withPlassignTarget(PlassignTargetForm $plassignTarget): self

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

Parameters

$plassignTargetPlassignTargetForm

Returns

self
Calls 1
public function withOptIndirection(OptIndirectionForm $optIndirection): self

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

Parameters

$optIndirectionOptIndirectionForm

Returns

self
Calls 1
public function withPlassignEquals(PlassignEqualsForm $plassignEquals): self

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

Parameters

$plassignEqualsPlassignEqualsForm

Returns

self
Calls 1
public function withPLpgSqlExpr(PLpgSqlExprForm $pLpgSqlExpr): self

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

Parameters

$pLpgSqlExprPLpgSqlExprForm

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