Notification
in package
Tags
Table of Contents
Constants
- IMPORTANCE_HIGH = 'high'
- IMPORTANCE_LOW = 'low'
- IMPORTANCE_MEDIUM = 'medium'
- IMPORTANCE_URGENT = 'urgent'
- LEVELS = [\Psr\Log\LogLevel::DEBUG => 100, \Psr\Log\LogLevel::INFO => 200, \Psr\Log\LogLevel::NOTICE => 250, \Psr\Log\LogLevel::WARNING => 300, \Psr\Log\LogLevel::ERROR => 400, \Psr\Log\LogLevel::CRITICAL => 500, \Psr\Log\LogLevel::ALERT => 550, \Psr\Log\LogLevel::EMERGENCY => 600]
Properties
- $channels : array<string|int, mixed>
- $content : string
- $emoji : string
- $exception : mixed
- $exceptionAsString : string
- $importance : string
- $subject : string
Methods
- __construct() : mixed
- channels() : $this
- content() : $this
- emoji() : $this
- fromThrowable() : self
- getChannels() : array<string|int, mixed>
- getContent() : string
- getEmoji() : string
- getException() : FlattenException|null
- getExceptionAsString() : string
- getImportance() : string
- getSubject() : string
- importance() : $this
- importanceFromLogLevelName() : $this
- subject() : $this
- getDefaultEmoji() : string
- computeExceptionAsString() : string
Constants
IMPORTANCE_HIGH
public
mixed
IMPORTANCE_HIGH
= 'high'
IMPORTANCE_LOW
public
mixed
IMPORTANCE_LOW
= 'low'
IMPORTANCE_MEDIUM
public
mixed
IMPORTANCE_MEDIUM
= 'medium'
IMPORTANCE_URGENT
public
mixed
IMPORTANCE_URGENT
= 'urgent'
LEVELS
private
mixed
LEVELS
= [\Psr\Log\LogLevel::DEBUG => 100, \Psr\Log\LogLevel::INFO => 200, \Psr\Log\LogLevel::NOTICE => 250, \Psr\Log\LogLevel::WARNING => 300, \Psr\Log\LogLevel::ERROR => 400, \Psr\Log\LogLevel::CRITICAL => 500, \Psr\Log\LogLevel::ALERT => 550, \Psr\Log\LogLevel::EMERGENCY => 600]
Properties
$channels
private
array<string|int, mixed>
$channels
= []
$content
private
string
$content
= ''
$emoji
private
string
$emoji
= ''
$exception
private
mixed
$exception
= null
$exceptionAsString
private
string
$exceptionAsString
= ''
$importance
private
string
$importance
= self::IMPORTANCE_HIGH
$subject
private
string
$subject
= ''
Methods
__construct()
public
__construct([string $subject = '' ][, array<string|int, mixed> $channels = [] ]) : mixed
Parameters
- $subject : string = ''
- $channels : array<string|int, mixed> = []
channels()
public
channels(array<string|int, mixed> $channels) : $this
Parameters
- $channels : array<string|int, mixed>
Return values
$thiscontent()
public
content(string $content) : $this
Parameters
- $content : string
Return values
$thisemoji()
public
emoji(string $emoji) : $this
Parameters
- $emoji : string
Return values
$thisfromThrowable()
public
static fromThrowable(Throwable $exception[, array<string|int, mixed> $channels = [] ]) : self
Parameters
- $exception : Throwable
- $channels : array<string|int, mixed> = []
Return values
selfgetChannels()
public
getChannels(RecipientInterface $recipient) : array<string|int, mixed>
Parameters
- $recipient : RecipientInterface
Return values
array<string|int, mixed>getContent()
public
getContent() : string
Return values
stringgetEmoji()
public
getEmoji() : string
Return values
stringgetException()
public
getException() : FlattenException|null
Return values
FlattenException|nullgetExceptionAsString()
public
getExceptionAsString() : string
Return values
stringgetImportance()
public
getImportance() : string
Return values
stringgetSubject()
public
getSubject() : string
Return values
stringimportance()
public
importance(string $importance) : $this
Parameters
- $importance : string
Return values
$thisimportanceFromLogLevelName()
public
importanceFromLogLevelName(string $level) : $this
Parameters
- $level : string
-
A PSR Logger log level name
Return values
$thissubject()
public
subject(string $subject) : $this
Parameters
- $subject : string
Return values
$thisgetDefaultEmoji()
protected
getDefaultEmoji() : string
Return values
stringcomputeExceptionAsString()
private
computeExceptionAsString(Throwable $exception) : string
Parameters
- $exception : Throwable