Class Null

Summary

Fully Qualified Name: Zend\Mail\Transport\Null
Extends: InMemory

Description

Stub class for backwards compatibility.

Since PHP 7 adds "null" as a reserved keyword, we can no longer have a class named that and retain PHP 7 compatibility. The original class has been renamed to "InMemory", and this class is now an extension of it. It raises an E_USER_DEPRECATED to warn users to migrate.

Methods

Name Description Defined By
__construct() Null
getLastMessage() Get the last message sent. InMemory
send() Takes the last message and saves it for testing. InMemory

Method Details

__construct()

Returns: void

getLastMessage()

Get the last message sent.

Returns: \Message

send()

Takes the last message and saves it for testing.

Parameter Name Type Description
$message \Message

Returns:

Top