src/Envelope/Serializer/StandardMessageInEnvelopeSerializer.php
private function deserializeMessage($serializedMessage, $messageClass)
    {
        $message = $this->objectSerializer->deserialize($serializedMessage, $messageClass);

        if (!($message instanceof $messageClass)) {
            throw new \LogicException(
                sprintf(
                    'Expected deserialized message to be an instance of "%s"',
                    $messageClass
                )
            );
        }

        return $message;
    }
private function deserializeMessage($serializedMessage, $messageClass)
    {
        $message = $this->objectSerializer->deserialize($serializedMessage, $messageClass);

        if (!($message instanceof $messageClass)) {
            throw new \LogicException(
                sprintf(
                    'Expected deserialized message to be an instance of "%s"',
                    $messageClass
                )
            );
        }

        return $message;
    }
private function deserializeMessage ( $ serializedMessage , $ messageClass ) { $ message = $ this -> objectSerializer -> deserialize ( $ serializedMessage , $ messageClass ) ; if ( ! ( $ message instanceof $ messageClass ) ) { throw new \ LogicException ( sprintf ( 'Expected deserialized message to be an instance of "%s"' , $ messageClass ) ) ; } return $ message ; }
Deserialize the Message

@param string $serializedMessage
@param string $messageClass
@return object Of type $messageClass
Deserialize the Message