classCreateSchemaStmtWithCreateSchemaOptSingleNameAuthorizationRoleSpecOptSchemaEltList_4706c0e1
final class CreateSchemaStmtWithCreateSchemaOptSingleNameAuthorizationRoleSpecOptSchemaEltList_4706c0e1
implements CreateSchemaStmtForm, ParseToplevelForm, RoutineBodyStmtForm, StmtForm, StmtmultiForm, ToplevelStmtForm, Command
uses Assertion
Public API: explicitly declared with
@visibility public.The CreateSchemaStmt SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\CreateSchemaStmtWithCreateSchemaOptSingleNameAuthorizationRoleSpecOptSchemaEltList_4706c0e1 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public OptSingleNameForm $optSingleNamepublic RoleSpecForm $roleSpecpublic OptSchemaEltListForm $optSchemaEltListpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public OptSingleNameForm $optSingleName,
public RoleSpecForm $roleSpec,
public OptSchemaEltListForm $optSchemaEltList,
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
$optSingleName | OptSingleNameForm | |
$roleSpec | RoleSpecForm | |
$optSchemaEltList | OptSchemaEltListForm | |
$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 OptSingleNameForm::write() line 43
- method-call RoleSpecForm::write() line 47
- method-call OptSchemaEltListForm::write() line 49
public function withOptSingleName(OptSingleNameForm $optSingleName): selfReturns a copy with a new optSingleName, preserving every other field.
Parameters
$optSingleName | OptSingleNameForm |
Returns
selfCalls 1
- new
selfline 57
public function withRoleSpec(RoleSpecForm $roleSpec): selfReturns a copy with a new roleSpec, preserving every other field.
Parameters
$roleSpec | RoleSpecForm |
Returns
selfCalls 1
- new
selfline 65
public function withOptSchemaEltList(OptSchemaEltListForm $optSchemaEltList): selfReturns a copy with a new optSchemaEltList, preserving every other field.
Parameters
$optSchemaEltList | OptSchemaEltListForm |
Returns
selfCalls 1
- new
selfline 73