Message
Table of Contents
Methods
- __construct() : mixed
- Message constructor.
- getFrom() : mixed
- getProvider() : Base|null
- getText() : mixed
- getTo() : mixed
- send() : SendMessageResult
- setFrom() : $this
- setProvider() : $this
- setText() : $this
- setTo() : $this
Methods
__construct()
Message constructor.
public
__construct([Base|null $provider = null ]) : mixed
Parameters
- $provider : Base|null = null
getFrom()
public
getFrom() : mixed
getProvider()
public
getProvider() : Base|null
Return values
Base|nullgetText()
public
getText() : mixed
getTo()
public
getTo() : mixed
send()
public
send([string|null $to = null ]) : SendMessageResult
Parameters
- $to : string|null = null
Return values
SendMessageResult —Send operation result.
setFrom()
public
setFrom(mixed $from) : $this
Parameters
- $from : mixed
Return values
$thissetProvider()
public
setProvider(Base $provider) : $this
Parameters
- $provider : Base
Return values
$thissetText()
public
setText(mixed $text) : $this
Parameters
- $text : mixed
Return values
$thissetTo()
public
setTo(mixed $to) : $this
Parameters
- $to : mixed