Total Complexity | 1 |
Total Lines | 12 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
7 | trait ApplyCallsWhenMethod |
||
8 | { |
||
9 | /** |
||
10 | * Delegate the application of the event to the appropriate when... method, e. g. a VisitorHasLeft event will be |
||
11 | * processed by the (private) method whenVisitorHasLeft(VisitorHasLeft $event): void |
||
12 | * |
||
13 | * @param DomainEvent $event |
||
14 | */ |
||
15 | protected function apply(DomainEvent $event): void |
||
21 |