src/Serializer/JmsSerializer.php
public function deserialize($data, array $params = array())
    {
        $sourceClass = $this->getSourceClassFromMapping($params);
        $this->handler->setSourceDeSerClass($sourceClass);

        return new NativeObjectGateway(
            $this->jms->deserialize(
                $data,
                $this->deserializerClass,
                self::SERIALIZER_FORMAT,
                $this->determineContext($this->jmsDeserializeContext, $params)
            )
        );
    }
public function deserialize($data, array $params = array())
    {
        $sourceClass = $this->getSourceClassFromMapping($params);
        $this->handler->setSourceDeSerClass($sourceClass);

        return new NativeObjectGateway(
            $this->jms->deserialize(
                $data,
                $this->deserializerClass,
                self::SERIALIZER_FORMAT,
                $this->determineContext($this->jmsDeserializeContext, $params)
            )
        );
    }
public function deserialize ( $ data , array $ params = array ( ) ) { $ sourceClass = $ this -> getSourceClassFromMapping ( $ params ) ; $ this -> handler -> setSourceDeSerClass ( $ sourceClass ) ; return new NativeObjectGateway ( $ this -> jms -> deserialize ( $ data , $ this -> deserializerClass , self :: SERIALIZER_FORMAT , $ this -> determineContext ( $ this -> jmsDeserializeContext , $ params ) ) ) ; }
Deserializes given data to array or object

@param string $data
@param array  $params

@return GatewayInterface
Deserializes given data to array or object