classCreateTrigStmtWithCreateOptOrReplaceConstraintTriggerNameAfterTriggerEventsOnQualifiedNameOpt_0a3387e3
final class CreateTrigStmtWithCreateOptOrReplaceConstraintTriggerNameAfterTriggerEventsOnQualifiedNameOpt_0a3387e3
implements CreateTrigStmtForm, ParseToplevelForm, RoutineBodyStmtForm, SchemaStmtForm, StmtForm, StmtmultiForm, ToplevelStmtForm, Command
uses Assertion
@visibility public.The CreateTrigStmt SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\CreateTrigStmtWithCreateOptOrReplaceConstraintTriggerNameAfterTriggerEventsOnQualifiedNameOpt_0a3387e3 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public OptOrReplaceForm $optOrReplacepublic NameForm $namepublic TriggerEventsForm $triggerEventspublic QualifiedNameForm $qualifiedNamepublic OptConstrFromTableForm $optConstrFromTablepublic ConstraintAttributeSpecForm $constraintAttributeSpecpublic TriggerWhenForm $triggerWhenpublic FunctionOrProcedureForm $functionOrProcedurepublic FuncNameForm $funcNamepublic TriggerFuncArgsForm $triggerFuncArgspublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public OptOrReplaceForm $optOrReplace,
public NameForm $name,
public TriggerEventsForm $triggerEvents,
public QualifiedNameForm $qualifiedName,
public OptConstrFromTableForm $optConstrFromTable,
public ConstraintAttributeSpecForm $constraintAttributeSpec,
public TriggerWhenForm $triggerWhen,
public FunctionOrProcedureForm $functionOrProcedure,
public FuncNameForm $funcName,
public TriggerFuncArgsForm $triggerFuncArgs,
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
$optOrReplace | OptOrReplaceForm | |
$name | NameForm | |
$triggerEvents | TriggerEventsForm | |
$qualifiedName | QualifiedNameForm | |
$optConstrFromTable | OptConstrFromTableForm | |
$constraintAttributeSpec | ConstraintAttributeSpecForm | |
$triggerWhen | TriggerWhenForm | |
$functionOrProcedure | FunctionOrProcedureForm | |
$funcName | FuncNameForm | |
$triggerFuncArgs | TriggerFuncArgsForm | |
$comments | Comments |
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 12
- method-call Writer::comments() line 52
- method-call Writer::append() line 53
- method-call OptOrReplaceForm::write() line 55
- method-call NameForm::write() line 61
- method-call TriggerEventsForm::write() line 65
- method-call QualifiedNameForm::write() line 69
- method-call OptConstrFromTableForm::write() line 71
- method-call ConstraintAttributeSpecForm::write() line 73
- method-call TriggerWhenForm::write() line 81
- method-call FunctionOrProcedureForm::write() line 85
- method-call FuncNameForm::write() line 87
- method-call TriggerFuncArgsForm::write() line 91
public function withOptOrReplace(OptOrReplaceForm $optOrReplace): selfReturns a copy with a new optOrReplace, preserving every other field.
Parameters
$optOrReplace | OptOrReplaceForm |
Returns
selfCalls 1
- new
selfline 101
public function withName(NameForm $name): selfpublic function withTriggerEvents(TriggerEventsForm $triggerEvents): selfReturns a copy with a new triggerEvents, preserving every other field.
Parameters
$triggerEvents | TriggerEventsForm |
Returns
selfCalls 1
- new
selfline 117
public function withQualifiedName(QualifiedNameForm $qualifiedName): selfReturns a copy with a new qualifiedName, preserving every other field.
Parameters
$qualifiedName | QualifiedNameForm |
Returns
selfCalls 1
- new
selfline 125
public function withOptConstrFromTable(OptConstrFromTableForm $optConstrFromTable): selfReturns a copy with a new optConstrFromTable, preserving every other field.
Parameters
$optConstrFromTable | OptConstrFromTableForm |
Returns
selfCalls 1
- new
selfline 133
public function withConstraintAttributeSpec(ConstraintAttributeSpecForm $constraintAttributeSpec): selfReturns a copy with a new constraintAttributeSpec, preserving every other field.
Parameters
$constraintAttributeSpec | ConstraintAttributeSpecForm |
Returns
selfCalls 1
- new
selfline 141
public function withTriggerWhen(TriggerWhenForm $triggerWhen): selfReturns a copy with a new triggerWhen, preserving every other field.
Parameters
$triggerWhen | TriggerWhenForm |
Returns
selfCalls 1
- new
selfline 149
public function withFunctionOrProcedure(FunctionOrProcedureForm $functionOrProcedure): selfReturns a copy with a new functionOrProcedure, preserving every other field.
Parameters
$functionOrProcedure | FunctionOrProcedureForm |
Returns
selfCalls 1
- new
selfline 157
public function withFuncName(FuncNameForm $funcName): selfReturns a copy with a new funcName, preserving every other field.
Parameters
$funcName | FuncNameForm |
Returns
selfCalls 1
- new
selfline 165
public function withTriggerFuncArgs(TriggerFuncArgsForm $triggerFuncArgs): selfReturns a copy with a new triggerFuncArgs, preserving every other field.
Parameters
$triggerFuncArgs | TriggerFuncArgsForm |
Returns
selfCalls 1
- new
selfline 173