classValuesClauseWithValuesClauseExprList_bf82b178
final class ValuesClauseWithValuesClauseExprList_bf82b178
implements ExplainableStmtForm, PreparableStmtForm, RuleActionListForm, RuleActionMultiForm, RuleActionStmtForm, RuleActionStmtOrEmptyForm, SelectStmtForm, InsertRestForm, ParseToplevelForm, RoutineBodyStmtForm, SelectClauseForm, SelectNoParensForm, SimpleSelectForm, StmtForm, StmtmultiForm, ToplevelStmtForm, ValuesClauseForm, Command
uses Assertion
Public API: explicitly declared with
@visibility public.The values_clause SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\ValuesClauseWithValuesClauseExprList_bf82b178 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public ValuesClauseForm $valuesClausepublic ExprListForm $exprListpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public ValuesClauseForm $valuesClause,
public ExprListForm $exprList,
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
$valuesClause | ValuesClauseForm | |
$exprList | ExprListForm | |
$comments | Comments |
Calls 3
- new Comments line 25
- method-call ValuesClauseWithValuesClauseExprList_bf82b178::assert() line 27
- static-call Contracts::contains() line 27
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 4
- method-call Writer::comments() line 36
- method-call ValuesClauseForm::write() line 37
- method-call Writer::append() line 39
- method-call ExprListForm::write() line 43
public function withValuesClause(ValuesClauseForm $valuesClause): selfReturns a copy with a new valuesClause, preserving every other field.
Parameters
$valuesClause | ValuesClauseForm |
Returns
selfCalls 1
- new
selfline 53
public function withExprList(ExprListForm $exprList): selfReturns a copy with a new exprList, preserving every other field.
Parameters
$exprList | ExprListForm |
Returns
selfCalls 1
- new
selfline 61