Skip to content

PhpMailLogger

Properties

subject

public string $subject

maxColumn

public int $maxColumn

to

protected string|array $to

headers

protected array $headers

parameters

protected array $parameters

contentType

protected string $contentType

encoding

protected string $encoding

from

protected string $from

logFormat

protected ?\Qubus\Log\Format $logFormat

threshold

public string|\Psr\Log\LogLevel $threshold

Methods

__construct

public __construct(string|\Psr\Log\LogLevel $threshold, array $params = []): mixed

Parameters:

Parameter Type Description
$threshold string|\Psr\Log\LogLevel Lowest level of logging to write.
$params array

Throws:


log

public log(string|\Psr\Log\LogLevel $level, string|\Stringable $message, array $context = []): void

Parameters:

Parameter Type Description
$level string|\Psr\Log\LogLevel
$message string|\Stringable
$context array

send

protected send(mixed $content): void

Parameters:

Parameter Type Description
$content mixed

setHeader

public setHeader(array $headers): $this

Parameters:

Parameter Type Description
$headers array

Throws:


setParameter

public setParameter(array|string $parameters): $this

Parameters:

Parameter Type Description
$parameters array|string

setContentType

public setContentType(string $contentType): $this

Parameters:

Parameter Type Description
$contentType string

Throws:


getContentType

public getContentType(): mixed

setEncoding

public setEncoding(string $encoding): $this

Parameters:

Parameter Type Description
$encoding string

Throws:


getEncoding

public getEncoding(): string

setTo

public setTo(array|string $value): void

Parameters:

Parameter Type Description
$value array|string

setFrom

public setFrom(string $value): void

Parameters:

Parameter Type Description
$value string

Throws:


isHtml

protected isHtml(array $data): bool

Parameters:

Parameter Type Description
$data array

Inherited methods

__construct

public __construct(array $params = []): mixed

Parameters:

Parameter Type Description
$params array

Throws:


isAvailable

public isAvailable(mixed $level): bool

Parameters:

Parameter Type Description
$level mixed

getDate

protected getDate(): string

stringify

protected stringify(array $data = []): string

Parameters:

Parameter Type Description
$data array

interpolate

protected interpolate(mixed $message, array $context = []): string

Parameters:

Parameter Type Description
$message mixed
$context array

__get

public __get(mixed $name): mixed

Parameters:

Parameter Type Description
$name mixed

Throws:


__set

public __set(mixed $name, mixed $value): mixed

Parameters:

Parameter Type Description
$name mixed
$value mixed

Throws:


__isset

public __isset(mixed $name): bool

Parameters:

Parameter Type Description
$name mixed


Automatically generated on 2025-10-13