classCreateConversionStmtWithCreateOptDefaultConversionPAnyNameForSconstToSconstFromAnyName_5b04071a
final class CreateConversionStmtWithCreateOptDefaultConversionPAnyNameForSconstToSconstFromAnyName_5b04071a
implements CreateConversionStmtForm, ParseToplevelForm, RoutineBodyStmtForm, StmtForm, StmtmultiForm, ToplevelStmtForm, Command
uses Assertion
Public API: explicitly declared with
@visibility public.The CreateConversionStmt SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\CreateConversionStmtWithCreateOptDefaultConversionPAnyNameForSconstToSconstFromAnyName_5b04071a $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public OptDefaultForm $optDefaultpublic AnyNameForm $anyNamepublic SconstForm $sconstpublic SconstForm $sconst2public AnyNameForm $anyName2public Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public OptDefaultForm $optDefault,
public AnyNameForm $anyName,
public SconstForm $sconst,
public SconstForm $sconst2,
public AnyNameForm $anyName2,
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
$optDefault | OptDefaultForm | |
$anyName | AnyNameForm | |
$sconst | SconstForm | |
$sconst2 | SconstForm | |
$anyName2 | AnyNameForm | |
$comments | Comments |
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 5
- method-call Writer::comments() line 42
- method-call Writer::append() line 43
- method-call OptDefaultForm::write() line 45
- method-call AnyNameForm::write() line 49
- method-call SconstForm::write() line 53
public function withOptDefault(OptDefaultForm $optDefault): selfReturns a copy with a new optDefault, preserving every other field.
Parameters
$optDefault | OptDefaultForm |
Returns
selfCalls 1
- new
selfline 69
public function withAnyName(AnyNameForm $anyName): selfReturns a copy with a new anyName, preserving every other field.
Parameters
$anyName | AnyNameForm |
Returns
selfCalls 1
- new
selfline 77
public function withSconst(SconstForm $sconst): selfReturns a copy with a new sconst, preserving every other field.
Parameters
$sconst | SconstForm |
Returns
selfCalls 1
- new
selfline 85
public function withSconst2(SconstForm $sconst2): selfReturns a copy with a new sconst2, preserving every other field.
Parameters
$sconst2 | SconstForm |
Returns
selfCalls 1
- new
selfline 93
public function withAnyName2(AnyNameForm $anyName2): selfReturns a copy with a new anyName2, preserving every other field.
Parameters
$anyName2 | AnyNameForm |
Returns
selfCalls 1
- new
selfline 101