Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | public function createFromCurrentDataTracker(CurrentDataTrackerInterface $currentDataTracker): CurrentDataTrackerInput |
||
23 | { |
||
24 | $currentDataTrackerInput = new CurrentDataTrackerInput(); |
||
25 | |||
26 | $currentDataTrackerInput->setObjectId($currentDataTracker->getObjectId()); |
||
27 | $currentDataTrackerInput->setData(json_encode($currentDataTracker->getData(), JSON_THROW_ON_ERROR)); |
||
28 | $currentDataTrackerInput->setObjectClass($currentDataTracker->getObjectClass()); |
||
29 | |||
30 | return $currentDataTrackerInput; |
||
31 | } |
||
33 |