classGrantCommandWithProxySymOnUserToSymGrantListOptGrantOption_14d62736
final class GrantCommandWithProxySymOnUserToSymGrantListOptGrantOption_14d62736
implements GrantCommandForm
uses Assertion
Public API: explicitly declared with
@visibility public.The grant_command SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\GrantCommandWithProxySymOnUserToSymGrantListOptGrantOption_14d62736 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public UserForm $userpublic GrantListForm $grantListpublic OptGrantOptionForm $optGrantOptionpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public UserForm $user,
public GrantListForm $grantList,
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 | |
$grantList | GrantListForm | |
$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 43
- method-call GrantListForm::write() line 47
- method-call OptGrantOptionForm::write() line 49
public function withUser(UserForm $user): selfpublic function withGrantList(GrantListForm $grantList): selfReturns a copy with a new grantList, preserving every other field.
Parameters
$grantList | GrantListForm |
Returns
selfCalls 1
- new
selfline 65
public function withOptGrantOption(OptGrantOptionForm $optGrantOption): selfReturns a copy with a new optGrantOption, preserving every other field.
Parameters
$optGrantOption | OptGrantOptionForm |
Returns
selfCalls 1
- new
selfline 73