classAlterWithAlterUserCommandUserFuncIdentifiedSymByTextString_038fc5d6
final class AlterWithAlterUserCommandUserFuncIdentifiedSymByTextString_038fc5d6
implements AlterForm, EvSqlStmtForm, EvSqlStmtInnerForm, SpProcStmtForm, SpProcStmtStatementForm, StatementForm, StoredRoutineBodyForm, VerbClauseForm
uses Assertion
Public API: explicitly declared with
@visibility public.The alter SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\AlterWithAlterUserCommandUserFuncIdentifiedSymByTextString_038fc5d6 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public AlterUserCommandForm $alterUserCommandpublic UserFuncForm $userFuncpublic string $valuepublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public AlterUserCommandForm $alterUserCommand,
public UserFuncForm $userFunc,
public string $value,
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
$alterUserCommand | AlterUserCommandForm | |
$userFunc | UserFuncForm | |
$value | string | |
$comments | Comments |
Calls 5
- new Comments line 26
- method-call AlterWithAlterUserCommandUserFuncIdentifiedSymByTextString_038fc5d6::assert() line 28
- static-call Contracts::contains() line 28
- method-call AlterWithAlterUserCommandUserFuncIdentifiedSymByTextString_038fc5d6::assertMatchesPattern() line 30
- class-const Contracts::SPELLINGS() line 30
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 4
- method-call Writer::comments() line 38
- method-call AlterUserCommandForm::write() line 39
- method-call UserFuncForm::write() line 41
- method-call Writer::append() line 43
public function withAlterUserCommand(AlterUserCommandForm $alterUserCommand): selfReturns a copy with a new alterUserCommand, preserving every other field.
Parameters
$alterUserCommand | AlterUserCommandForm |
Returns
selfCalls 1
- new
selfline 55
public function withUserFunc(UserFuncForm $userFunc): selfReturns a copy with a new userFunc, preserving every other field.
Parameters
$userFunc | UserFuncForm |
Returns
selfCalls 1
- new
selfline 63
public function withValue(string $value): selfReturns a copy with a new value, preserving every other field.
Parameters
$value | string |
Returns
selfCalls 1
- new
selfline 71