class ArrayTransport implements Stringable, TransportInterface

Properties

protected Collection $messages

The collection of Symfony Messages.

Methods

__construct()

Create a new array transport instance.

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

No description

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

at line 24
__construct()

Create a new array transport instance.

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

No description

Parameters

RawMessage $message
Envelope|null $envelope

Return Value

SentMessage|null

at line 37
Collection messages()

Retrieve the collection of messages.

Return Value

Collection

at line 45
Collection flush()

Clear all of the messages from the local collection.

Return Value

Collection

at line 53
string __toString()

Get the string representation of the transport.

Return Value

string