abstract class Messaging (View source)

Methods

static array
pushChannels(array $channels)

Push channels to the messaging

Envelop|null
toMail(Model $context)

Send notification to mail

array
toDatabase(Model $context)

Send notification to database

array
toSms(Model $context)

Send notification to sms

array
toSlack(Model $context)

Send notification to slack

array
toTelegram(Model $context)

Send notification to telegram

void
process(Model $context)

Process the notification

array
channels(Model $context)

Returns the available channels to be used

Details

static array pushChannels(array $channels)

Push channels to the messaging

Parameters

array $channels

Return Value

array

Envelop|null toMail(Model $context)

Send notification to mail

Parameters

Model $context

Return Value

Envelop|null

array toDatabase(Model $context)

Send notification to database

Parameters

Model $context

Return Value

array

array toSms(Model $context)

Send notification to sms

Parameters

Model $context

Return Value

array

array toSlack(Model $context)

Send notification to slack

Parameters

Model $context

Return Value

array

array toTelegram(Model $context)

Send notification to telegram

Parameters

Model $context

Return Value

array

void process(Model $context)

Process the notification

Parameters

Model $context

Return Value

void

abstract array channels(Model $context)

Returns the available channels to be used

Parameters

Model $context

Return Value

array