Documentation

PhpSerializer
in package
implements SerializerInterface

Tags
author

Ryan Weaver ryan@symfonycasts.com

Table of Contents

Interfaces

SerializerInterface

Methods

decode()  : Envelope
Decodes an envelope and its message from an encoded-form.
encode()  : array<string|int, mixed>
Encodes an envelope content (message & stamps) to a common format understandable by transports.
safelyUnserialize()  : mixed

Methods

decode()

Decodes an envelope and its message from an encoded-form.

public decode(array<string|int, mixed> $encodedEnvelope) : Envelope
Parameters
$encodedEnvelope : array<string|int, mixed>
Return values
Envelope

encode()

Encodes an envelope content (message & stamps) to a common format understandable by transports.

public encode(Envelope $envelope) : array<string|int, mixed>
Parameters
$envelope : Envelope
Return values
array<string|int, mixed>

safelyUnserialize()

private safelyUnserialize(string $contents) : mixed
Parameters
$contents : string

        
On this page

Search results