PHP Class Fenos\Notifynder\Handler\Dispatcher

Inheritance: implements Fenos\Notifynder\Contracts\NotifynderDispatcher
Afficher le fichier Open project: fenos/notifynder

Méthodes publiques

Свойство Type Description
$defaultWildcard string Default namespace for notifications events.

Protected Properties

Свойство Type Description
$event Illuminate\Events\Dispatcher
$sender string Default sender method.

Méthodes publiques

Méthode Description
__construct ( Illuminate\Contracts\Events\Dispatcher $event )
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).

Méthodes protégées

Méthode Description
generateEventName ( $eventName ) : string Get Event name.

Method Details

__construct() public méthode

public __construct ( Illuminate\Contracts\Events\Dispatcher $event )
$event Illuminate\Contracts\Events\Dispatcher

boot() public méthode

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

delegate() public méthode

Delegate events to categories.
public delegate ( Fenos\Notifynder\Notifynder $notifynder, array $data, array $events ) : mixed
$notifynder Fenos\Notifynder\Notifynder
$data array
$events array
Résultat mixed

fire() public méthode

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
Résultat mixed | null

generateEventName() protected méthode

Get Event name.
protected generateEventName ( $eventName ) : string
$eventName
Résultat string

hasNotificationToSend() public méthode

Check if the fired method has some notifications to send.
public hasNotificationToSend ( $notificationsResult ) : boolean
$notificationsResult
Résultat boolean

sendWith() public méthode

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

Property Details

$defaultWildcard public_oe static_oe property

Default namespace for notifications events.
public static string $defaultWildcard
Résultat string

$event protected_oe property

protected Dispatcher,Illuminate\Events $event
Résultat Illuminate\Events\Dispatcher

$sender protected_oe property

Default sender method.
protected string $sender
Résultat string