classGrantWithGrantRoleOrPrivilegeListToSymUserListOptWithAdminOption_2491e436
final class GrantWithGrantRoleOrPrivilegeListToSymUserListOptWithAdminOption_2491e436
implements EvSqlStmtForm, EvSqlStmtInnerForm, GrantForm, SimpleStatementForm, SimpleStatementOrBeginForm, SpProcStmtForm, SpProcStmtStatementForm, StatementForm, StoredRoutineBodyForm, VerbClauseForm, Command
uses Assertion
Public API: explicitly declared with
@visibility public.The grant SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\GrantWithGrantRoleOrPrivilegeListToSymUserListOptWithAdminOption_2491e436 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public RoleOrPrivilegeListForm $roleOrPrivilegeListpublic UserListForm $userListpublic OptWithAdminOptionForm $optWithAdminOptionpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public RoleOrPrivilegeListForm $roleOrPrivilegeList,
public UserListForm $userList,
public OptWithAdminOptionForm $optWithAdminOption,
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
$roleOrPrivilegeList | RoleOrPrivilegeListForm | |
$userList | UserListForm | |
$optWithAdminOption | OptWithAdminOptionForm | |
$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 RoleOrPrivilegeListForm::write() line 41
- method-call UserListForm::write() line 45
- method-call OptWithAdminOptionForm::write() line 47
public function withRoleOrPrivilegeList(RoleOrPrivilegeListForm $roleOrPrivilegeList): selfReturns a copy with a new roleOrPrivilegeList, preserving every other field.
Parameters
$roleOrPrivilegeList | RoleOrPrivilegeListForm |
Returns
selfCalls 1
- new
selfline 55
public function withUserList(UserListForm $userList): selfReturns a copy with a new userList, preserving every other field.
Parameters
$userList | UserListForm |
Returns
selfCalls 1
- new
selfline 63
public function withOptWithAdminOption(OptWithAdminOptionForm $optWithAdminOption): selfReturns a copy with a new optWithAdminOption, preserving every other field.
Parameters
$optWithAdminOption | OptWithAdminOptionForm |
Returns
selfCalls 1
- new
selfline 71