OutgoingMessage
in package
Table of Contents
Properties
- $attachment : Attachment|null
- $text : string
Methods
- create() : self
- getAttachment() : Attachment|null
- getText() : string
- hasAttachment() : bool
- withAttachment() : self
- __construct() : mixed
Properties
$attachment
private
Attachment|null
$attachment
= null
$text read-only
private
string
$text
Methods
create()
public
static create([string $message = '' ]) : self
Parameters
- $message : string = ''
Return values
selfgetAttachment()
public
getAttachment() : Attachment|null
Return values
Attachment|nullgetText()
public
getText() : string
Return values
stringhasAttachment()
public
hasAttachment() : bool
Return values
boolwithAttachment()
public
withAttachment(Attachment $attachment) : self
Parameters
- $attachment : Attachment
Return values
self__construct()
private
__construct(string $text) : mixed
Parameters
- $text : string