PHP Class Fenos\Notifynder\Senders\SenderManager

Inheritance: implements Fenos\Notifynder\Contracts\NotifynderSender
显示文件 Open project: fenos/notifynder

Protected Properties

Property Type Description
$container Illuminate\Contracts\Container\Container
$senderFactory SenderFactory
$senders array
$storeNotification Fenos\Notifynder\Contracts\StoreNotification

Public Methods

Method Description
__call ( $name, $arguments ) : mixed When calling a not existing method try to resolve with an extended.
__construct ( SenderFactory $senderFactory, Fenos\Notifynder\Contracts\StoreNotification $storeNotification, Illuminate\Contracts\Container\Container $container )
customSender ( $customMethod, $notification ) : mixed Call a custom method.
extend ( $name, callable $extendSender ) This method allow to Extend notifynder with custom sender.
send ( array $info, null $category = null ) : mixed Send any notifications.
sendGroup ( $groupName, array $info = [] ) : mixed Send a group of notifications at once.
sendMultiple ( $info ) : SendMultiple Send Multiple method to get fully working older version.
sendNow ( array $info, $category = null ) : mixed Send now whatever data passed.
sendOne ( $info, $category = null ) : SendOne Send one method to get fully working older version.

Method Details

__call() public method

When calling a not existing method try to resolve with an extended.
public __call ( $name, $arguments ) : mixed
$name
$arguments
return mixed

__construct() public method

public __construct ( SenderFactory $senderFactory, Fenos\Notifynder\Contracts\StoreNotification $storeNotification, Illuminate\Contracts\Container\Container $container )
$senderFactory SenderFactory
$storeNotification Fenos\Notifynder\Contracts\StoreNotification
$container Illuminate\Contracts\Container\Container

customSender() public method

Call a custom method.
public customSender ( $customMethod, $notification ) : mixed
$customMethod
$notification
return mixed

extend() public method

This method allow to Extend notifynder with custom sender.
public extend ( $name, callable $extendSender )
$name
$extendSender callable

send() public method

Send any notifications.
public send ( array $info, null $category = null ) : mixed
$info array
$category null
return mixed

sendGroup() public method

Send a group of notifications at once.
public sendGroup ( $groupName, array $info = [] ) : mixed
$groupName
$info array
return mixed

sendMultiple() public method

Send Multiple method to get fully working older version.
public sendMultiple ( $info ) : SendMultiple
$info
return SendMultiple

sendNow() public method

Send now whatever data passed.
public sendNow ( array $info, $category = null ) : mixed
$info array
$category
return mixed

sendOne() public method

Send one method to get fully working older version.
public sendOne ( $info, $category = null ) : SendOne
$info
$category
return SendOne

Property Details

$container protected_oe property

protected Container,Illuminate\Contracts\Container $container
return Illuminate\Contracts\Container\Container

$senderFactory protected_oe property

protected SenderFactory,Fenos\Notifynder\Senders $senderFactory
return SenderFactory

$senders protected_oe property

protected array $senders
return array

$storeNotification protected_oe property

protected StoreNotification,Fenos\Notifynder\Contracts $storeNotification
return Fenos\Notifynder\Contracts\StoreNotification