final class TriggerTailWithTriggerSymSpNameTrgActionTimeTrgEventOnTableIdentForSymEachSymRowSymTrigger_683f6d3d
    implements DefinerTailForm, NoDefinerTailForm, TriggerTailForm
    uses Assertion
Public API: explicitly declared with @visibility public.

The trigger_tail SQL value; generated by bin/build-models.php.

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

Properties§

public SpNameForm $spName
public TrgActionTimeForm $trgActionTime
public TrgEventForm $trgEvent
public TableIdentForm $tableIdent
public TriggerFollowsPrecedesClauseForm $triggerFollowsPrecedesClause
public SpProcStmtForm $spProcStmt
public Comments $comments = new \SqlSemantics\Statement\Comments()

Methods§

public function __construct(
    public SpNameForm $spName,
    public TrgActionTimeForm $trgActionTime,
    public TrgEventForm $trgEvent,
    public TableIdentForm $tableIdent,
    public TriggerFollowsPrecedesClauseForm $triggerFollowsPrecedesClause,
    public SpProcStmtForm $spProcStmt,
    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

$spNameSpNameForm
$trgActionTimeTrgActionTimeForm
$trgEventTrgEventForm
$tableIdentTableIdentForm
$triggerFollowsPrecedesClauseTriggerFollowsPrecedesClauseForm
$spProcStmtSpProcStmtForm
$commentsComments
Calls 3
public function write(Writer $writer): void

Writes SQL entirely from this value's fields.

Parameters

$writerWriter
Calls 8
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 withTrgActionTime(TrgActionTimeForm $trgActionTime): self

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

Parameters

$trgActionTimeTrgActionTimeForm

Returns

self
Calls 1
public function withTrgEvent(TrgEventForm $trgEvent): self

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

Parameters

$trgEventTrgEventForm

Returns

self
Calls 1
public function withTableIdent(TableIdentForm $tableIdent): self

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

Parameters

$tableIdentTableIdentForm

Returns

self
Calls 1
public function withTriggerFollowsPrecedesClause(TriggerFollowsPrecedesClauseForm $triggerFollowsPrecedesClause): self

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

Parameters

$triggerFollowsPrecedesClauseTriggerFollowsPrecedesClauseForm

Returns

self
Calls 1
public function withSpProcStmt(SpProcStmtForm $spProcStmt): self

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

Parameters

$spProcStmtSpProcStmtForm

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