class ArrayTransport implements TransportInterface (View source)

Properties

protected Collection $messages

The collection of Symfony Messages.

Methods

void
__construct()

Create a new array transport instance.

SentMessage|null
send(RawMessage $message, Envelope $envelope = null)

{@inheritdoc}

messages()

Retrieve the collection of messages.

flush()

Clear all of the messages from the local collection.

string
__toString()

Get the string representation of the transport.

Details

void __construct()

Create a new array transport instance.

Return Value

void

SentMessage|null send(RawMessage $message, Envelope $envelope = null)

{@inheritdoc}

Parameters

RawMessage $message
Envelope $envelope

Return Value

SentMessage|null

Collection messages()

Retrieve the collection of messages.

Return Value

Collection

Collection flush()

Clear all of the messages from the local collection.

Return Value

Collection

string __toString()

Get the string representation of the transport.

Return Value

string