classTriggerTailWithTriggerSymSpNameTrgActionTimeTrgEventOnTableIdentForSymEachSymRowSymTrigger_683f6d3d
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.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\TriggerTailWithTriggerSymSpNameTrgActionTimeTrgEventOnTableIdentForSymEachSymRowSymTrigger_683f6d3d $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public SpNameForm $spNamepublic TrgActionTimeForm $trgActionTimepublic TrgEventForm $trgEventpublic TableIdentForm $tableIdentpublic TriggerFollowsPrecedesClauseForm $triggerFollowsPrecedesClausepublic SpProcStmtForm $spProcStmtpublic 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
$spName | SpNameForm | |
$trgActionTime | TrgActionTimeForm | |
$trgEvent | TrgEventForm | |
$tableIdent | TableIdentForm | |
$triggerFollowsPrecedesClause | TriggerFollowsPrecedesClauseForm | |
$spProcStmt | SpProcStmtForm | |
$comments | Comments |
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 8
- method-call Writer::comments() line 44
- method-call Writer::append() line 45
- method-call SpNameForm::write() line 47
- method-call TrgActionTimeForm::write() line 49
- method-call TrgEventForm::write() line 51
- method-call TableIdentForm::write() line 55
- method-call TriggerFollowsPrecedesClauseForm::write() line 63
- method-call SpProcStmtForm::write() line 65
public function withSpName(SpNameForm $spName): selfReturns a copy with a new spName, preserving every other field.
Parameters
$spName | SpNameForm |
Returns
selfCalls 1
- new
selfline 73
public function withTrgActionTime(TrgActionTimeForm $trgActionTime): selfReturns a copy with a new trgActionTime, preserving every other field.
Parameters
$trgActionTime | TrgActionTimeForm |
Returns
selfCalls 1
- new
selfline 81
public function withTrgEvent(TrgEventForm $trgEvent): selfReturns a copy with a new trgEvent, preserving every other field.
Parameters
$trgEvent | TrgEventForm |
Returns
selfCalls 1
- new
selfline 89
public function withTableIdent(TableIdentForm $tableIdent): selfReturns a copy with a new tableIdent, preserving every other field.
Parameters
$tableIdent | TableIdentForm |
Returns
selfCalls 1
- new
selfline 97
public function withTriggerFollowsPrecedesClause(TriggerFollowsPrecedesClauseForm $triggerFollowsPrecedesClause): selfReturns a copy with a new triggerFollowsPrecedesClause, preserving every other field.
Parameters
$triggerFollowsPrecedesClause | TriggerFollowsPrecedesClauseForm |
Returns
selfCalls 1
- new
selfline 105
public function withSpProcStmt(SpProcStmtForm $spProcStmt): selfReturns a copy with a new spProcStmt, preserving every other field.
Parameters
$spProcStmt | SpProcStmtForm |
Returns
selfCalls 1
- new
selfline 113