classGrantCommandWithGrantPrivilegesOnProcedureSymGrantIdentToSymGrantListRequireClauseGrantOpti_c31de914
final class GrantCommandWithGrantPrivilegesOnProcedureSymGrantIdentToSymGrantListRequireClauseGrantOpti_c31de914
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\GrantCommandWithGrantPrivilegesOnProcedureSymGrantIdentToSymGrantListRequireClauseGrantOpti_c31de914 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public GrantPrivilegesForm $grantPrivilegespublic GrantIdentForm $grantIdentpublic GrantListForm $grantListpublic RequireClauseForm $requireClausepublic GrantOptionsForm $grantOptionspublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public GrantPrivilegesForm $grantPrivileges,
public GrantIdentForm $grantIdent,
public GrantListForm $grantList,
public RequireClauseForm $requireClause,
public GrantOptionsForm $grantOptions,
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
$grantPrivileges | GrantPrivilegesForm | |
$grantIdent | GrantIdentForm | |
$grantList | GrantListForm | |
$requireClause | RequireClauseForm | |
$grantOptions | GrantOptionsForm | |
$comments | Comments |
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 7
- method-call Writer::comments() line 42
- method-call GrantPrivilegesForm::write() line 43
- method-call Writer::append() line 45
- method-call GrantIdentForm::write() line 49
- method-call GrantListForm::write() line 53
- method-call RequireClauseForm::write() line 55
- method-call GrantOptionsForm::write() line 57
public function withGrantPrivileges(GrantPrivilegesForm $grantPrivileges): selfReturns a copy with a new grantPrivileges, preserving every other field.
Parameters
$grantPrivileges | GrantPrivilegesForm |
Returns
selfCalls 1
- new
selfline 65
public function withGrantIdent(GrantIdentForm $grantIdent): selfReturns a copy with a new grantIdent, preserving every other field.
Parameters
$grantIdent | GrantIdentForm |
Returns
selfCalls 1
- new
selfline 73
public function withGrantList(GrantListForm $grantList): selfReturns a copy with a new grantList, preserving every other field.
Parameters
$grantList | GrantListForm |
Returns
selfCalls 1
- new
selfline 81
public function withRequireClause(RequireClauseForm $requireClause): selfReturns a copy with a new requireClause, preserving every other field.
Parameters
$requireClause | RequireClauseForm |
Returns
selfCalls 1
- new
selfline 89
public function withGrantOptions(GrantOptionsForm $grantOptions): selfReturns a copy with a new grantOptions, preserving every other field.
Parameters
$grantOptions | GrantOptionsForm |
Returns
selfCalls 1
- new
selfline 97