classPlAssignStmtWithPlassignTargetOptIndirectionPlassignEqualsPLpgSqlExpr_24b1361f
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.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\PlAssignStmtWithPlassignTargetOptIndirectionPlassignEqualsPLpgSqlExpr_24b1361f $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public PlassignTargetForm $plassignTargetpublic OptIndirectionForm $optIndirectionpublic PlassignEqualsForm $plassignEqualspublic PLpgSqlExprForm $pLpgSqlExprpublic 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
$plassignTarget | PlassignTargetForm | |
$optIndirection | OptIndirectionForm | |
$plassignEquals | PlassignEqualsForm | |
$pLpgSqlExpr | PLpgSqlExprForm | |
$comments | Comments |
Calls 3
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 5
- method-call Writer::comments() line 40
- method-call PlassignTargetForm::write() line 41
- method-call OptIndirectionForm::write() line 43
- method-call PlassignEqualsForm::write() line 45
- method-call PLpgSqlExprForm::write() line 47
public function withPlassignTarget(PlassignTargetForm $plassignTarget): selfReturns a copy with a new plassignTarget, preserving every other field.
Parameters
$plassignTarget | PlassignTargetForm |
Returns
selfCalls 1
- new
selfline 55
public function withOptIndirection(OptIndirectionForm $optIndirection): selfReturns a copy with a new optIndirection, preserving every other field.
Parameters
$optIndirection | OptIndirectionForm |
Returns
selfCalls 1
- new
selfline 63
public function withPlassignEquals(PlassignEqualsForm $plassignEquals): selfReturns a copy with a new plassignEquals, preserving every other field.
Parameters
$plassignEquals | PlassignEqualsForm |
Returns
selfCalls 1
- new
selfline 71
public function withPLpgSqlExpr(PLpgSqlExprForm $pLpgSqlExpr): selfReturns a copy with a new pLpgSqlExpr, preserving every other field.
Parameters
$pLpgSqlExpr | PLpgSqlExprForm |
Returns
selfCalls 1
- new
selfline 79