/**
* @internal
*/
public function rejectPhpIncompleteClass(): void
{ $this->acceptPhpIncompleteClass = false;
} public function decode(array
$encodedEnvelope): Envelope
{ if (empty($encodedEnvelope['body'
])) { throw new MessageDecodingFailedException('Encoded envelope should have at least a "body", or maybe you should implement your own serializer.'
);
} if (!
str_ends_with($encodedEnvelope['body'
], '}'
)) { $encodedEnvelope['body'
] =
base64_decode($encodedEnvelope['body'
]);
} $serializeEnvelope =
stripslashes($encodedEnvelope['body'
]);
return $this->
safelyUnserialize($serializeEnvelope);
}