public function deserialize($data, array $options = [])
    {
        if (!is_array($data)) {
            try {
                $data = Yaml::parse($data);
            } catch (\Exception $e) {
                throw new DeserializeMessageFailed($e->getMessage(), 0, $e);
            }
        }

        return parent::deserialize($data, $options);
    }
public function deserialize($data, array $options = [])
    {
        if (!is_array($data)) {
            try {
                $data = Yaml::parse($data);
            } catch (\Exception $e) {
                throw new DeserializeMessageFailed($e->getMessage(), 0, $e);
            }
        }

        return parent::deserialize($data, $options);
    }
{@inheritdoc}

@return Message