PHP Трейт Laracasts\Behat\Context\Services\MailTrap

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$client GuzzleHttp\Client The Guzzle client.
$mailTrapApiKey string The MailTrap API Key.
$mailTrapInboxId integer The MailTrap configuration.

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

Метод Описание
emptyInbox ( ) Empty the MailTrap inbox.

Защищенные методы

Метод Описание
alreadyConfigured ( ) : boolean Determine if MailTrap config has been retrieved yet.
applyMailTrapConfiguration ( integer | null $inboxId = null ) Get the configuration for MailTrap.
fetchInbox ( integer | null $inboxId = null ) : mixed Fetch a MailTrap inbox.
getMailTrapCleanUrl ( ) : string Get the MailTrap "empty inbox" endpoint.
getMailTrapMessagesUrl ( ) : string Get the MailTrap messages endpoint.
parseJson ( $body ) : array | mixed
requestClient ( ) : Client Request a new Guzzle client.

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

alreadyConfigured() защищенный метод

Determine if MailTrap config has been retrieved yet.
protected alreadyConfigured ( ) : boolean
Результат boolean

applyMailTrapConfiguration() защищенный метод

Get the configuration for MailTrap.
protected applyMailTrapConfiguration ( integer | null $inboxId = null )
$inboxId integer | null

emptyInbox() публичный метод

Empty the MailTrap inbox.
public emptyInbox ( )

fetchInbox() защищенный метод

Fetch a MailTrap inbox.
protected fetchInbox ( integer | null $inboxId = null ) : mixed
$inboxId integer | null
Результат mixed

getMailTrapCleanUrl() защищенный метод

Get the MailTrap "empty inbox" endpoint.
protected getMailTrapCleanUrl ( ) : string
Результат string

getMailTrapMessagesUrl() защищенный метод

Get the MailTrap messages endpoint.
protected getMailTrapMessagesUrl ( ) : string
Результат string

parseJson() защищенный метод

protected parseJson ( $body ) : array | mixed
$body
Результат array | mixed

requestClient() защищенный метод

Request a new Guzzle client.
protected requestClient ( ) : Client
Результат GuzzleHttp\Client

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

$client защищенное свойство

The Guzzle client.
protected Client,GuzzleHttp $client
Результат GuzzleHttp\Client

$mailTrapApiKey защищенное свойство

The MailTrap API Key.
protected string $mailTrapApiKey
Результат string

$mailTrapInboxId защищенное свойство

The MailTrap configuration.
protected int $mailTrapInboxId
Результат integer