PHP Класс MockPHPMailer

Наследование: extends PHPMailer
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$mock_sent

Открытые методы

Метод Описание
get_recipient ( string $address_type, integer $mock_sent_index, integer $recipient_index ) : boolean | object Get a recipient for a sent mock.
get_sent ( integer $index ) : object Decorator to return the information for a sent mock.
postSend ( ) Override postSend() so mail isn't actually sent.
preSend ( )

Описание методов

get_recipient() публичный Метод

Get a recipient for a sent mock.
С версии: 4.5.0
public get_recipient ( string $address_type, integer $mock_sent_index, integer $recipient_index ) : boolean | object
$address_type string The type of address for the email such as to, cc or bcc.
$mock_sent_index integer Optional. The sent_mock index we want to get the recipient for.
$recipient_index integer Optional. The recipient index in the array.
Результат boolean | object Returns object on success, or false if any of the indices don't exist.

get_sent() публичный Метод

Decorator to return the information for a sent mock.
С версии: 4.5.0
public get_sent ( integer $index ) : object
$index integer Optional. Array index of mock_sent value.
Результат object

postSend() публичный Метод

Override postSend() so mail isn't actually sent.
public postSend ( )

preSend() публичный Метод

public preSend ( )

Описание свойств

$mock_sent публичное свойство

public $mock_sent