classCreatedbStmtWithCreateDatabaseNameOptWithCreatedbOptList_b3fc222e
final class CreatedbStmtWithCreateDatabaseNameOptWithCreatedbOptList_b3fc222e
implements CreatedbStmtForm, ParseToplevelForm, RoutineBodyStmtForm, StmtForm, StmtmultiForm, ToplevelStmtForm, Command
uses Assertion
Public API: explicitly declared with
@visibility public.The CreatedbStmt SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\CreatedbStmtWithCreateDatabaseNameOptWithCreatedbOptList_b3fc222e $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public NameForm $namepublic OptWithForm $optWithpublic CreatedbOptListForm $createdbOptListpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public NameForm $name,
public OptWithForm $optWith,
public CreatedbOptListForm $createdbOptList,
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
$name | NameForm | |
$optWith | OptWithForm | |
$createdbOptList | CreatedbOptListForm | |
$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 38
- method-call Writer::append() line 39
- method-call NameForm::write() line 43
- method-call OptWithForm::write() line 45
- method-call CreatedbOptListForm::write() line 47
public function withName(NameForm $name): selfpublic function withOptWith(OptWithForm $optWith): selfReturns a copy with a new optWith, preserving every other field.
Parameters
$optWith | OptWithForm |
Returns
selfCalls 1
- new
selfline 63
public function withCreatedbOptList(CreatedbOptListForm $createdbOptList): selfReturns a copy with a new createdbOptList, preserving every other field.
Parameters
$createdbOptList | CreatedbOptListForm |
Returns
selfCalls 1
- new
selfline 71