| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | 1 | public function handle(EventMessage $e) |
|
| 37 | { |
||
| 38 | 1 | $eventPrefix = 'event.'; |
|
| 39 | 1 | $eventName = $eventPrefix . $e->getName(); |
|
| 40 | 1 | $event = new PamiEvent(); |
|
| 41 | 1 | $event->setName($eventName); |
|
| 42 | 1 | $event->setTarget($this->client); |
|
| 43 | 1 | $event->setEvent($e); |
|
| 44 | 1 | $this->client->getEventManager()->triggerEvent($event); |
|
| 45 | 1 | } |
|
| 46 | } |
||
| 47 |