Headers
class Headers
Traits
Methods
mixed
when(mixed $value = null, callable|null $callback = null, callable|null $default = null)
Apply the callback if the given "value" is (or resolves to) truthy.
from
Conditionable
mixed
unless(mixed $value = null, callable|null $callback = null, callable|null $default = null)
Apply the callback if the given "value" is (or resolves to) falsy.
from
Conditionable
__construct(string|null $messageId = null, array $references = [], array $text = [])
Create a new instance of headers for a message.
references(array $references)
Set the message IDs referenced by this message.
string
referencesString()
Get the references header as a string.
Details
in
Conditionable at line 23
mixed
when(mixed $value = null, callable|null $callback = null, callable|null $default = null)
Apply the callback if the given "value" is (or resolves to) truthy.
in
Conditionable at line 56
mixed
unless(mixed $value = null, callable|null $callback = null, callable|null $default = null)
Apply the callback if the given "value" is (or resolves to) falsy.
at line 22
__construct(string|null $messageId = null, array $references = [], array $text = [])
Create a new instance of headers for a message.
at line 32
Headers
messageId(string $messageId)
Set the message ID.
at line 42
Headers
references(array $references)
Set the message IDs referenced by this message.
at line 52
Headers
text(array $text)
Set the headers for this message.
at line 62
string
referencesString()
Get the references header as a string.