classGenericSetWithVarNameToVarList_6cb59184
final class GenericSetWithVarNameToVarList_6cb59184
implements GenericSetForm, SetRestForm, SetRestMoreForm
uses Assertion
Public API: explicitly declared with
@visibility public.The generic_set SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\GenericSetWithVarNameToVarList_6cb59184 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public VarNameForm $varNamepublic VarListForm $varListpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public VarNameForm $varName,
public VarListForm $varList,
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
$varName | VarNameForm | |
$varList | VarListForm | |
$comments | Comments |
Calls 3
- new Comments line 25
- method-call GenericSetWithVarNameToVarList_6cb59184::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 VarNameForm::write() line 37
- method-call Writer::append() line 39
- method-call VarListForm::write() line 41
public function withVarName(VarNameForm $varName): selfReturns a copy with a new varName, preserving every other field.
Parameters
$varName | VarNameForm |
Returns
selfCalls 1
- new
selfline 49
public function withVarList(VarListForm $varList): selfReturns a copy with a new varList, preserving every other field.
Parameters
$varList | VarListForm |
Returns
selfCalls 1
- new
selfline 57