TextMessage
class TextMessage mixin Message (View source)
Traits
Properties
protected Message | $message | The underlying message instance. |
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
protected mixed
forwardCallTo(mixed $object, string $method, array $parameters)
Forward a method call to the given object.
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.
static protected void
throwBadMethodCallException(string $method)
Throw a bad method call exception for the given method.
void
__construct(Message $message)
Create a new text message instance.
string
embed(string|Attachable|Attachment $file)
Embed a file in the message and get the CID.
string
embedData(string|resource $data, string $name, string|null $contentType = null)
Embed in-memory data in the message and get the CID.
mixed
__call(string $method, array $parameters)
Dynamically pass missing methods to the underlying message instance.