final class AlterWithAlterDefinerOptEventSymSpNameEvAlterOnScheduleCompletionOptEvRenameToOptEvS_dfabb8a0
    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.

Accept a structured SQL valuedoctest
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\AlterWithAlterDefinerOptEventSymSpNameEvAlterOnScheduleCompletionOptEvRenameToOptEvS_dfabb8a0 $value): string => \SqlSemantics\Statement\Writer::render($value);
    $write instanceof \Closure // => true

Properties§

public DefinerOptForm $definerOpt
public SpNameForm $spName
public EvAlterOnScheduleCompletionForm $evAlterOnScheduleCompletion
public OptEvRenameToForm $optEvRenameTo
public OptEvStatusForm $optEvStatus
public OptEvCommentForm $optEvComment
public OptEvSqlStmtForm $optEvSqlStmt
public Comments $comments = new \SqlSemantics\Statement\Comments()

Methods§

public function __construct(
    public DefinerOptForm $definerOpt,
    public SpNameForm $spName,
    public EvAlterOnScheduleCompletionForm $evAlterOnScheduleCompletion,
    public OptEvRenameToForm $optEvRenameTo,
    public OptEvStatusForm $optEvStatus,
    public OptEvCommentForm $optEvComment,
    public OptEvSqlStmtForm $optEvSqlStmt,
    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

$definerOptDefinerOptForm
$spNameSpNameForm
$evAlterOnScheduleCompletionEvAlterOnScheduleCompletionForm
$optEvRenameToOptEvRenameToForm
$optEvStatusOptEvStatusForm
$optEvCommentOptEvCommentForm
$optEvSqlStmtOptEvSqlStmtForm
$commentsComments
Calls 3
public function write(Writer $writer): void
public function withDefinerOpt(DefinerOptForm $definerOpt): self

Returns a copy with a new definerOpt, preserving every other field.

Parameters

$definerOptDefinerOptForm

Returns

self
Calls 1
public function withSpName(SpNameForm $spName): self

Returns a copy with a new spName, preserving every other field.

Parameters

$spNameSpNameForm

Returns

self
Calls 1
public function withEvAlterOnScheduleCompletion(EvAlterOnScheduleCompletionForm $evAlterOnScheduleCompletion): self

Returns a copy with a new evAlterOnScheduleCompletion, preserving every other field.

Parameters

$evAlterOnScheduleCompletionEvAlterOnScheduleCompletionForm

Returns

self
Calls 1
public function withOptEvRenameTo(OptEvRenameToForm $optEvRenameTo): self

Returns a copy with a new optEvRenameTo, preserving every other field.

Parameters

$optEvRenameToOptEvRenameToForm

Returns

self
Calls 1
public function withOptEvStatus(OptEvStatusForm $optEvStatus): self

Returns a copy with a new optEvStatus, preserving every other field.

Parameters

$optEvStatusOptEvStatusForm

Returns

self
Calls 1
public function withOptEvComment(OptEvCommentForm $optEvComment): self

Returns a copy with a new optEvComment, preserving every other field.

Parameters

$optEvCommentOptEvCommentForm

Returns

self
Calls 1
public function withOptEvSqlStmt(OptEvSqlStmtForm $optEvSqlStmt): self

Returns a copy with a new optEvSqlStmt, preserving every other field.

Parameters

$optEvSqlStmtOptEvSqlStmtForm

Returns

self
Calls 1
public function withComments(Comments $comments): self

Returns a copy with a new comments, preserving every other field.

Parameters

$commentsComments

Returns

self
Calls 1