PHP Class Fenos\Notifynder\Senders\SenderFactory

ファイルを表示 Open project: fenos/notifynder Class Usage Examples

Protected Properties

Property Type Description
$notifynderGroup Fenos\Notifynder\Contracts\NotifynderGroup

Public Methods

Method 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.

Protected Methods

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

Method Details

__construct() public method

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

getSender() public method

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

isMultiArray() protected method

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

sendGroup() public method

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

sendMultiple() public method

Send Multiple Notification Sender.
public sendMultiple ( array $infoNotifications ) : SendMultiple
$infoNotifications array
return SendMultiple

sendSingle() public method

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

Property Details

$notifynderGroup protected_oe property

protected NotifynderGroup,Fenos\Notifynder\Contracts $notifynderGroup
return Fenos\Notifynder\Contracts\NotifynderGroup