PHP 클래스 Namshi\Notificator\Manager

상속: implements Namshi\Notificator\ManagerInterface
파일 보기 프로젝트 열기: namshi/notificator 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$handlers array
$logger Psr\Log\LoggerInterface

공개 메소드들

메소드 설명
__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 )

메소드 상세

__construct() 공개 메소드

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

addHandler() 공개 메소드

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

getHandlers() 공개 메소드

Returns all the handlers associated to this manager.
public getHandlers ( ) : array
리턴 array

getLogger() 공개 메소드

public getLogger ( ) : Psr\Log\LoggerInterface
리턴 Psr\Log\LoggerInterface

trigger() 공개 메소드

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

프로퍼티 상세

$handlers 보호되어 있는 프로퍼티

protected array $handlers
리턴 array

$logger 보호되어 있는 프로퍼티

protected LoggerInterface,Psr\Log $logger
리턴 Psr\Log\LoggerInterface