PHP Class Fenos\Notifynder\Senders\SenderFactory

Afficher le fichier Open project: fenos/notifynder Class Usage Examples

Protected Properties

Свойство Type Description
$notifynderGroup Fenos\Notifynder\Contracts\NotifynderGroup

Méthodes publiques

Méthode Description
__construct ( Fenos\Notifynder\Contracts\NotifynderGroup $notifynderGroup, Fenos\Notifynder\Contracts\NotifynderCategory $notifynderCategory )
getSender ( array $infoNotifications, $category = null ) : SendMultiple | SendOne Get the right sender when the data is passed.
sendGroup ( string $groupName, array $info ) : SendGroup Get the the send group instance.
sendMultiple ( array $infoNotifications ) : SendMultiple Send Multiple Notification Sender.
sendSingle ( array $infoNotifications, $category ) : SendOne Send Single Notification Sender.

Méthodes protégées

Méthode Description
isMultiArray ( array $arr ) : boolean Check if the array passed is multidimensional.

Method Details

__construct() public méthode

public __construct ( Fenos\Notifynder\Contracts\NotifynderGroup $notifynderGroup, Fenos\Notifynder\Contracts\NotifynderCategory $notifynderCategory )
$notifynderGroup Fenos\Notifynder\Contracts\NotifynderGroup
$notifynderCategory Fenos\Notifynder\Contracts\NotifynderCategory

getSender() public méthode

Get the right sender when the data is passed.
public getSender ( array $infoNotifications, $category = null ) : SendMultiple | SendOne
$infoNotifications array
$category
Résultat SendMultiple | SendOne

isMultiArray() protected méthode

Check if the array passed is multidimensional.
protected isMultiArray ( array $arr ) : boolean
$arr array
Résultat boolean

sendGroup() public méthode

Get the the send group instance.
public sendGroup ( string $groupName, array $info ) : SendGroup
$groupName string
$info array
Résultat SendGroup

sendMultiple() public méthode

Send Multiple Notification Sender.
public sendMultiple ( array $infoNotifications ) : SendMultiple
$infoNotifications array
Résultat SendMultiple

sendSingle() public méthode

Send Single Notification Sender.
public sendSingle ( array $infoNotifications, $category ) : SendOne
$infoNotifications array
$category
Résultat SendOne

Property Details

$notifynderGroup protected_oe property

protected NotifynderGroup,Fenos\Notifynder\Contracts $notifynderGroup
Résultat Fenos\Notifynder\Contracts\NotifynderGroup