| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | protected function publish(DomainEvent $event) : void |
||
| 38 | { |
||
| 39 | $this->apply($event); |
||
| 40 | $this->record($event); |
||
| 41 | DomainEventPublisher::instance()->publish( |
||
| 42 | new PublishableDomainEvent( |
||
| 43 | $this->id(), |
||
| 44 | mb_strtolower(array_reverse(explode('\\', get_class($this)))[0]), |
||
| 45 | $event |
||
| 46 | ) |
||
| 47 | ); |
||
| 48 | } |
||
| 49 | |||
| 64 |