classGrantWithGrantProxySymOnSymUserToSymUserListOptGrantOption_e6976216
final class GrantWithGrantProxySymOnSymUserToSymUserListOptGrantOption_e6976216
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\GrantWithGrantProxySymOnSymUserToSymUserListOptGrantOption_e6976216 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public UserForm $userpublic UserListForm $userListpublic OptGrantOptionForm $optGrantOptionpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public UserForm $user,
public UserListForm $userList,
public OptGrantOptionForm $optGrantOption,
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
$user | UserForm | |
$userList | UserListForm | |
$optGrantOption | OptGrantOptionForm | |
$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 UserForm::write() line 45
- method-call UserListForm::write() line 49
- method-call OptGrantOptionForm::write() line 51
public function withUser(UserForm $user): selfpublic function withUserList(UserListForm $userList): selfReturns a copy with a new userList, preserving every other field.
Parameters
$userList | UserListForm |
Returns
selfCalls 1
- new
selfline 67
public function withOptGrantOption(OptGrantOptionForm $optGrantOption): selfReturns a copy with a new optGrantOption, preserving every other field.
Parameters
$optGrantOption | OptGrantOptionForm |
Returns
selfCalls 1
- new
selfline 75