Notifier
in package
implements
NotifierInterface
FinalYes
Tags
Table of Contents
Interfaces
- NotifierInterface
- Interface for the Notifier system.
Properties
- $adminRecipients : array<string|int, mixed>
- $channels : array<string|int, mixed>|ContainerInterface
- $policy : mixed
Methods
- __construct() : mixed
- addAdminRecipient() : void
- getAdminRecipients() : array<string|int, RecipientInterface>
- send() : void
- getChannel() : ChannelInterface|null
- getChannels() : iterable<string|int, mixed>
Properties
$adminRecipients
private
array<string|int, mixed>
$adminRecipients
= []
$channels
private
array<string|int, mixed>|ContainerInterface
$channels
$policy
private
mixed
$policy
Methods
__construct()
public
__construct(array<string|int, ChannelInterface>|ContainerInterface $channels[, ChannelPolicyInterface $policy = null ]) : mixed
Parameters
- $channels : array<string|int, ChannelInterface>|ContainerInterface
- $policy : ChannelPolicyInterface = null
addAdminRecipient()
public
addAdminRecipient(RecipientInterface $recipient) : void
Parameters
- $recipient : RecipientInterface
getAdminRecipients()
public
getAdminRecipients() : array<string|int, RecipientInterface>
Return values
array<string|int, RecipientInterface>send()
public
send(Notification $notification, RecipientInterface ...$recipients) : void
Parameters
- $notification : Notification
- $recipients : RecipientInterface
getChannel()
private
getChannel(string $name) : ChannelInterface|null
Parameters
- $name : string
Return values
ChannelInterface|nullgetChannels()
private
getChannels(Notification $notification, RecipientInterface $recipient) : iterable<string|int, mixed>
Parameters
- $notification : Notification
- $recipient : RecipientInterface