| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | public function create($item, ?array $normalizedData = []): CurrentDataTrackerInput |
||
| 12 | { |
||
| 13 | $currentDataTracker = new CurrentDataTrackerInput(); |
||
| 14 | |||
| 15 | $currentDataTracker->setObjectId($item->getId()); |
||
| 16 | $currentDataTracker->setData(json_encode($normalizedData, JSON_THROW_ON_ERROR)); |
||
| 17 | $currentDataTracker->setObjectClass(ClassUtils::getClass($item)); |
||
| 18 | |||
| 19 | return $currentDataTracker; |
||
| 20 | } |
||
| 33 |