PHP 클래스 Tylercd100\LERN\LERN

파일 보기 프로젝트 열기: tylercd100/lern

공개 메소드들

메소드 설명
__construct ( Notifier $notifier = null, Recorder $recorder = null )
getNotifier ( ) : Notifier Get Notifier
getRecorder ( ) : Recorder Get Recorder
handle ( Exception $e ) : ExceptionModel Will execute record and notify methods
notify ( Exception $e ) : void Will send the exception to all monolog handlers
pushHandler ( Monolog\Handler\HandlerInterface $handler ) Pushes on another Monolog Handler
record ( Exception $e ) : ExceptionModel | false Stores the exception in the database
setMessage ( function | string $cb ) Set a string or a closure to be called that will generate the message body for the notification
setNotifier ( Notifier $notifier ) : LERN Set Notifier
setRecorder ( Recorder $recorder ) : LERN Set Recorder
setSubject ( function | string $cb ) Set a string or a closure to be called that will generate the subject line for the notification

메소드 상세

__construct() 공개 메소드

public __construct ( Notifier $notifier = null, Recorder $recorder = null )
$notifier Tylercd100\LERN\Components\Notifier Notifier instance
$recorder Tylercd100\LERN\Components\Recorder Recorder instance

getNotifier() 공개 메소드

Get Notifier
public getNotifier ( ) : Notifier
리턴 Tylercd100\LERN\Components\Notifier

getRecorder() 공개 메소드

Get Recorder
public getRecorder ( ) : Recorder
리턴 Tylercd100\LERN\Components\Recorder

handle() 공개 메소드

Will execute record and notify methods
public handle ( Exception $e ) : ExceptionModel
$e Exception The exception to use
리턴 ExceptionModel the recorded Eloquent Model

notify() 공개 메소드

Will send the exception to all monolog handlers
public notify ( Exception $e ) : void
$e Exception The exception to use
리턴 void

pushHandler() 공개 메소드

Pushes on another Monolog Handler
public pushHandler ( Monolog\Handler\HandlerInterface $handler )
$handler Monolog\Handler\HandlerInterface The handler instance to add on

record() 공개 메소드

Stores the exception in the database
public record ( Exception $e ) : ExceptionModel | false
$e Exception The exception to use
리턴 Tylercd100\LERN\Models\ExceptionModel | false The recorded Exception as an Eloquent Model

setMessage() 공개 메소드

Set a string or a closure to be called that will generate the message body for the notification
public setMessage ( function | string $cb )
$cb function | string This closure function will be passed an Exception and must return a string

setNotifier() 공개 메소드

Set Notifier
public setNotifier ( Notifier $notifier ) : LERN
$notifier Tylercd100\LERN\Components\Notifier A Notifier instance to use
리턴 LERN

setRecorder() 공개 메소드

Set Recorder
public setRecorder ( Recorder $recorder ) : LERN
$recorder Tylercd100\LERN\Components\Recorder A Recorder instance to use
리턴 LERN

setSubject() 공개 메소드

Set a string or a closure to be called that will generate the subject line for the notification
public setSubject ( function | string $cb )
$cb function | string This closure function will be passed an Exception and must return a string