PHP Класс Fenos\Notifynder\Handler\NotifynderHandler

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

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

Метод Описание
handle ( Fenos\Notifynder\Contracts\NotifyListener $eventListener, null $notifynder = null ) : mixed Handle the event.

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

Метод Описание
getEventName ( $event ) : string Get Event Name from the key it use a convention.
getNotifynder ( ) : Fenos\Notifynder\Notifynder Get Notifynder Instance.
hasNotificationToSend ( $notificationsResult ) : boolean Check if the fired method has some notifications to send.
listenerIsRegistered ( $eventName ) : boolean Check if the listener exists on the class adding when as convention.

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

getEventName() защищенный Метод

given user.post.add -> postAdd given user@postAdd -> postAdd
protected getEventName ( $event ) : string
$event
Результат string

getNotifynder() защищенный Метод

Get Notifynder Instance.
protected getNotifynder ( ) : Fenos\Notifynder\Notifynder
Результат Fenos\Notifynder\Notifynder

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

Handle the event.
public handle ( Fenos\Notifynder\Contracts\NotifyListener $eventListener, null $notifynder = null ) : mixed
$eventListener Fenos\Notifynder\Contracts\NotifyListener
$notifynder null
Результат mixed

hasNotificationToSend() защищенный Метод

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

listenerIsRegistered() защищенный Метод

['postAdd'] whenPostAdd]
protected listenerIsRegistered ( $eventName ) : boolean
$eventName
Результат boolean