PHP Class Namshi\Notificator\Manager

Inheritance: implements Namshi\Notificator\ManagerInterface
Afficher le fichier Open project: namshi/notificator Class Usage Examples

Protected Properties

Свойство Type Description
$handlers array
$logger Psr\Log\LoggerInterface

Méthodes publiques

Méthode Description
__construct ( array $handlers = [], Psr\Log\LoggerInterface $logger = null ) Constructor.
addHandler ( Namshi\Notificator\Notification\Handler\HandlerInterface $handler ) Adds an handler to this manager.
getHandlers ( ) : array Returns all the handlers associated to this manager.
getLogger ( ) : Psr\Log\LoggerInterface
trigger ( Namshi\Notificator\NotificationInterface $notification )

Method Details

__construct() public méthode

Constructor.
public __construct ( array $handlers = [], Psr\Log\LoggerInterface $logger = null )
$handlers array
$logger Psr\Log\LoggerInterface

addHandler() public méthode

Adds an handler to this manager.
public addHandler ( Namshi\Notificator\Notification\Handler\HandlerInterface $handler )
$handler Namshi\Notificator\Notification\Handler\HandlerInterface

getHandlers() public méthode

Returns all the handlers associated to this manager.
public getHandlers ( ) : array
Résultat array

getLogger() public méthode

public getLogger ( ) : Psr\Log\LoggerInterface
Résultat Psr\Log\LoggerInterface

trigger() public méthode

public trigger ( Namshi\Notificator\NotificationInterface $notification )
$notification Namshi\Notificator\NotificationInterface

Property Details

$handlers protected_oe property

protected array $handlers
Résultat array

$logger protected_oe property

protected LoggerInterface,Psr\Log $logger
Résultat Psr\Log\LoggerInterface