| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function normalize($object, $format = null, array $context = array()) |
||
| 30 | { |
||
| 31 | $cloned = clone $object; |
||
| 32 | $serializedTask = $this->aggregate->normalize($cloned->getTask()); |
||
| 33 | $serializedProcess = serialize($cloned->getProcess()); |
||
| 34 | $cloned->setTask(null); |
||
| 35 | $cloned->setProcess(null); |
||
| 36 | |||
| 37 | return serialize([ |
||
| 38 | 'serializedTask' => $serializedTask, |
||
| 39 | 'serializedProcess' => $serializedProcess, |
||
| 40 | 'result' => $cloned, |
||
| 41 | ]); |
||
| 42 | } |
||
| 43 | |||
| 56 |