AbstractTransport
in package
implements
TransportInterface
AbstractYes
Tags
Table of Contents
Interfaces
- TransportInterface
- Interface for all mailer transports.
Properties
- $dispatcher : mixed
- $lastSent : mixed
- $logger : mixed
- $rate : mixed
Methods
- __construct() : mixed
- send() : SentMessage|null
- setMaxPerSecond() : $this
- Sets the maximum number of messages to send per second (0 to disable).
- doSend() : void
- getLogger() : LoggerInterface
- stringifyAddresses() : array<string|int, string>
- checkThrottling() : mixed
Properties
$dispatcher
private
mixed
$dispatcher
$lastSent
private
mixed
$lastSent
= 0
$logger
private
mixed
$logger
$rate
private
mixed
$rate
= 0
Methods
__construct()
public
__construct([EventDispatcherInterface|null $dispatcher = null ][, LoggerInterface|null $logger = null ]) : mixed
Parameters
- $dispatcher : EventDispatcherInterface|null = null
- $logger : LoggerInterface|null = null
send()
public
send(RawMessage $message[, Envelope|null $envelope = null ]) : SentMessage|null
Parameters
- $message : RawMessage
- $envelope : Envelope|null = null
Return values
SentMessage|nullsetMaxPerSecond()
Sets the maximum number of messages to send per second (0 to disable).
public
setMaxPerSecond(float $rate) : $this
Parameters
- $rate : float
Return values
$thisdoSend()
protected
abstract doSend(SentMessage $message) : void
Parameters
- $message : SentMessage
getLogger()
protected
getLogger() : LoggerInterface
Return values
LoggerInterfacestringifyAddresses()
protected
stringifyAddresses(array<string|int, Address> $addresses) : array<string|int, string>
Parameters
- $addresses : array<string|int, Address>
Return values
array<string|int, string>checkThrottling()
private
checkThrottling() : mixed