Documentation

InMemoryTransport
in package
implements TransportInterface, ResetInterface

Transport that stays in memory. Useful for testing purpose.

Tags
author

Gary PEGEOT garypegeot@gmail.com

Table of Contents

Interfaces

TransportInterface
ResetInterface
Provides a way to reset an object to its initial state.

Properties

$acknowledged  : array<string|int, Envelope>
$nextId  : int
$queue  : array<string|int, Envelope>
$rejected  : array<string|int, Envelope>
$sent  : array<string|int, Envelope>
$serializer  : mixed

Methods

__construct()  : mixed
ack()  : void
{@inheritdoc}
get()  : iterable<string|int, mixed>
{@inheritdoc}
getAcknowledged()  : array<string|int, Envelope>
getRejected()  : array<string|int, Envelope>
getSent()  : array<string|int, Envelope>
reject()  : void
{@inheritdoc}
reset()  : mixed
send()  : Envelope
{@inheritdoc}
decode()  : array<string|int, Envelope>
encode()  : Envelope|array<string|int, mixed>

Properties

Methods

get()

{@inheritdoc}

public get() : iterable<string|int, mixed>
Return values
iterable<string|int, mixed>

decode()

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

        
On this page

Search results