Serializer/Job/SerializationHelper.php
public function deserializeReturnValue($type, $data)
    {
        $jobType = $this->registry->get($type);

        return $this->serializer->deserialize($data, $jobType->getReturnType(), 'json', $this->getResponseDeserializationContext($jobType));
    }
public function deserializeReturnValue($type, $data)
    {
        $jobType = $this->registry->get($type);

        return $this->serializer->deserialize($data, $jobType->getReturnType(), 'json', $this->getResponseDeserializationContext($jobType));
    }
public function deserializeReturnValue ( $ type , $ data ) { $ jobType = $ this -> registry -> get ( $ type ) ; return $ this -> serializer -> deserialize ( $ data , $ jobType -> getReturnType ( ) , 'json' , $ this -> getResponseDeserializationContext ( $ jobType ) ) ; }
Deserializes the return of a job.

@param string $type The job type
@param string $data
@return mixed
Deserializes the return of a job .