classTriggerOrder
final class TriggerOrder
implements Node
uses Snapshot
Public API: explicitly declared with
@visibility public.The FOLLOWS or PRECEDES clause of CREATE TRIGGER (MySQL 5.7 and later).
Source: https://dev.mysql.com/doc/refman/8.4/en/create-trigger.html.
$create = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('CREATE TRIGGER tr BEFORE INSERT ON t FOR EACH ROW PRECEDES other SET @a = 1');
[$create->statement->order->placement->value, $create->statement->order->other->value] // => ['PRECEDES', 'other']Properties§
public OrderPlacement $placementpublic Name $otherMethods§
public function __construct(public OrderPlacement $placement, public Name $other)Parameters
$placement | OrderPlacement | Whether the trigger runs after or before the other |
$other | Name | The name of the other trigger |
public function render(Output $out): voidWrites the keyword and the other trigger name.
Parameters
$out | Output |
Test cases 1
Calls 2
- method-call Output::keyword() line 40
- class-const NameUse::Identifier() line 40
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.