Property | Type | Description | |
---|---|---|---|
$handlers | array | ||
$logger | Psr\Log\LoggerInterface |
Method | 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 ) |
public __construct ( array $handlers = [], Psr\Log\LoggerInterface $logger = null ) | ||
$handlers | array | |
$logger | Psr\Log\LoggerInterface |
public addHandler ( Namshi\Notificator\Notification\Handler\HandlerInterface $handler ) | ||
$handler | Namshi\Notificator\Notification\Handler\HandlerInterface |
public getHandlers ( ) : array | ||
return | array |
public getLogger ( ) : Psr\Log\LoggerInterface | ||
return | Psr\Log\LoggerInterface |
public trigger ( Namshi\Notificator\NotificationInterface $notification ) | ||
$notification | Namshi\Notificator\NotificationInterface |