Swift_Transport_NullTransport
in package
implements
Swift_Transport
Pretends messages have been sent, but just ignores them.
Tags
Interfaces, Classes and Traits
- Swift_Transport
- Sends Messages via an abstract Transport subsystem.
Table of Contents
- $eventDispatcher : mixed
- The event dispatcher from the plugin API
- __construct() : mixed
- Constructor.
- isStarted() : bool
- Tests if this Transport mechanism has started.
- ping() : bool
- Check if this Transport mechanism is alive.
- registerPlugin() : mixed
- Register a plugin.
- send() : int
- Sends the given message.
- start() : mixed
- Starts this Transport mechanism.
- stop() : mixed
- Stops this Transport mechanism.
Properties
$eventDispatcher
The event dispatcher from the plugin API
private
mixed
$eventDispatcher
Methods
__construct()
Constructor.
public
__construct(Swift_Events_EventDispatcher $eventDispatcher) : mixed
Parameters
- $eventDispatcher : Swift_Events_EventDispatcher
Return values
mixed —isStarted()
Tests if this Transport mechanism has started.
public
isStarted() : bool
Return values
bool —ping()
Check if this Transport mechanism is alive.
public
ping() : bool
Return values
bool —TRUE if the transport is alive
registerPlugin()
Register a plugin.
public
registerPlugin(Swift_Events_EventListener $plugin) : mixed
Parameters
- $plugin : Swift_Events_EventListener
Return values
mixed —send()
Sends the given message.
public
send(Swift_Mime_SimpleMessage $message[, array<string|int, string> &$failedRecipients = null ]) : int
Parameters
- $message : Swift_Mime_SimpleMessage
- $failedRecipients : array<string|int, string> = null
-
An array of failures by-reference
Return values
int —The number of sent emails
start()
Starts this Transport mechanism.
public
start() : mixed
Return values
mixed —stop()
Stops this Transport mechanism.
public
stop() : mixed