| Conditions | 3 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | public function wrapData(PreDeserializeEvent $event) |
||
| 38 | { |
||
| 39 | $type = $event->getType(); |
||
| 40 | $handledClass = 'Xabbuh\XApi\Model\DocumentData'; |
||
| 41 | |||
| 42 | if ($handledClass == $type['name'] || is_subclass_of($type['name'], $handledClass)) { |
||
| 43 | $data = $event->getData(); |
||
| 44 | $event->setData(array('data' => $data)); |
||
| 45 | } |
||
| 46 | } |
||
| 47 | } |
||
| 48 |