TextMessage
class TextMessage mixin Message
Traits
Methods
Forward a method call to the given object.
Forward a method call to the given object, returning $this if the forwarded call returned itself.
Throw a bad method call exception for the given method.
Embed in-memory data in the message and get the CID.
Dynamically pass missing methods to the underlying message instance.
Details
in
ForwardsCalls at line 22
protected mixed
forwardCallTo(mixed $object, string $method, array $parameters)
Forward a method call to the given object.
in
ForwardsCalls at line 52
protected mixed
forwardDecoratedCallTo(mixed $object, string $method, array $parameters)
Forward a method call to the given object, returning $this if the forwarded call returned itself.
in
ForwardsCalls at line 66
static protected never
throwBadMethodCallException(string $method)
Throw a bad method call exception for the given method.
at line 20
__construct(Message $message)
Create a new text message instance.
at line 28
string
embed(Attachable|Attachment|string $file)
Embed a file in the message and get the CID.
at line 36
string
embedData(mixed $data, string $name, string|null $contentType = null)
Embed in-memory data in the message and get the CID.
at line 44
__call(string $method, array $parameters)
Dynamically pass missing methods to the underlying message instance.