final class TriggerDeclWithTempTriggerIfnotexistsNmDbnmTriggerTimeTriggerEventOnFullnameForeachClauseW_09bb7d8c
    implements TriggerDeclForm
    uses Assertion
Public API: explicitly declared with @visibility public.

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

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

Properties§

public TempForm $temp
public IfnotexistsForm $ifnotexists
public NmForm $nm
public DbnmForm $dbnm
public TriggerTimeForm $triggerTime
public TriggerEventForm $triggerEvent
public FullnameForm $fullname
public ForeachClauseForm $foreachClause
public WhenClauseForm $whenClause
public Comments $comments = new \SqlSemantics\Statement\Comments()

Methods§

public function __construct(
    public TempForm $temp,
    public IfnotexistsForm $ifnotexists,
    public NmForm $nm,
    public DbnmForm $dbnm,
    public TriggerTimeForm $triggerTime,
    public TriggerEventForm $triggerEvent,
    public FullnameForm $fullname,
    public ForeachClauseForm $foreachClause,
    public WhenClauseForm $whenClause,
    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

$tempTempForm
$ifnotexistsIfnotexistsForm
$nmNmForm
$dbnmDbnmForm
$triggerTimeTriggerTimeForm
$triggerEventTriggerEventForm
$fullnameFullnameForm
$foreachClauseForeachClauseForm
$whenClauseWhenClauseForm
$commentsComments
Calls 3
public function write(Writer $writer): void

Writes SQL entirely from this value's fields.

Parameters

$writerWriter
Calls 11
public function withTemp(TempForm $temp): self

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

Parameters

Returns

self
Calls 1
public function withIfnotexists(IfnotexistsForm $ifnotexists): self

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

Parameters

$ifnotexistsIfnotexistsForm

Returns

self
Calls 1
public function withNm(NmForm $nm): self

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

Parameters

Returns

self
Calls 1
public function withDbnm(DbnmForm $dbnm): self

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

Parameters

Returns

self
Calls 1
public function withTriggerTime(TriggerTimeForm $triggerTime): self

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

Parameters

$triggerTimeTriggerTimeForm

Returns

self
Calls 1
public function withTriggerEvent(TriggerEventForm $triggerEvent): self

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

Parameters

$triggerEventTriggerEventForm

Returns

self
Calls 1
public function withFullname(FullnameForm $fullname): self

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

Parameters

$fullnameFullnameForm

Returns

self
Calls 1
public function withForeachClause(ForeachClauseForm $foreachClause): self

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

Parameters

$foreachClauseForeachClauseForm

Returns

self
Calls 1
public function withWhenClause(WhenClauseForm $whenClause): self

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

Parameters

$whenClauseWhenClauseForm

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