PHP 인터페이스 Fenos\Notifynder\Contracts\NotifynderDispatcher

파일 보기 프로젝트 열기: fenos/notifynder 0 사용 예제들

공개 메소드들

메소드 설명
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