| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | public function onPreDeserialize(PreDeserializeEvent $event) |
||
| 38 | { |
||
| 39 | $type = $event->getType(); |
||
| 40 | |||
| 41 | if ($this->supportsClass($type['name'])) { |
||
| 42 | $data = $event->getData(); |
||
| 43 | |||
| 44 | if ($this->isDataModificationNeeded($data)) { |
||
| 45 | $data = array_merge($data, $this->getAdditionalData()); |
||
| 46 | } |
||
| 47 | |||
| 48 | $event->setData($data); |
||
| 49 | } |
||
| 50 | } |
||
| 51 | |||
| 58 |