PHP Интерфейс Fenos\Notifynder\Contracts\NotifynderDispatcher

Показать файл Открыть проект Примеры использования интерфейса

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

Метод Описание
boot ( array $listeners ) Boot The listeners.
delegate ( Fenos\Notifynder\Notifynder $notifynder, array $data, array $events ) : mixed Delegate events to categories.
fire ( Fenos\Notifynder\Notifynder $notifynder, string $eventName, string $categoryName = null, mixed | null $values = [] ) : mixed | null It fire the event associated to the passed key, trigger the listener method bound with.
hasNotificationToSend ( $notificationsResult ) : boolean Check if the fired method has some notifications to send.
sendWith ( $customMethod ) Tell the dispatcher to send the notification with a custom (extended method).

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

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

Boot The listeners.
public boot ( array $listeners )
$listeners array

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

Delegate events to categories.
public delegate ( Fenos\Notifynder\Notifynder $notifynder, array $data, array $events ) : mixed
$notifynder Fenos\Notifynder\Notifynder
$data array
$events array
Результат mixed

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

It fire the event associated to the passed key, trigger the listener method bound with.
public fire ( Fenos\Notifynder\Notifynder $notifynder, string $eventName, string $categoryName = null, mixed | null $values = [] ) : mixed | null
$notifynder Fenos\Notifynder\Notifynder
$eventName string
$categoryName string
$values mixed | null
Результат mixed | null

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

Check if the fired method has some notifications to send.
public hasNotificationToSend ( $notificationsResult ) : boolean
$notificationsResult
Результат boolean

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

Tell the dispatcher to send the notification with a custom (extended method).
public sendWith ( $customMethod )
$customMethod