| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | final public function handle(DomainMessage $domainMessage) |
||
| 30 | { |
||
| 31 | $event = $domainMessage->getPayload(); |
||
| 32 | |||
| 33 | $classParts = explode('\\', get_class($event)); |
||
| 34 | $method = 'apply' . end($classParts); |
||
| 35 | |||
| 36 | if (!method_exists($this, $method)) { |
||
| 37 | return; |
||
| 38 | } |
||
| 39 | |||
| 40 | $this->$method($event, $domainMessage); |
||
| 41 | } |
||
| 42 | } |
||
| 43 |