\EasyWeChat\StaffMessageBuilder

Class MessageBuilder.

Summary

Methods
Properties
Constants
__construct()
message()
by()
to()
send()
__get()
No public properties found
No constants found
No protected methods found
$message
$to
$account
$staff
N/A
No private methods found
No private properties found
N/A

Properties

$message

$message : \EasyWeChat\Message\AbstractMessage;

Message to send.

Type

\EasyWeChat\Message\AbstractMessage;

$to

$to : string

Message target user open id.

Type

string

$account

$account : string

Message sender staff id.

Type

string

Methods

__construct()

__construct(\EasyWeChat\Staff\Staff  $staff) 

MessageBuilder constructor.

Parameters

\EasyWeChat\Staff\Staff $staff

by()

by(string  $account) : \EasyWeChat\Staff\MessageBuilder

Set staff account to send message.

Parameters

string $account

Returns

\EasyWeChat\Staff\MessageBuilder

send()

send() : boolean

Send the message.

Throws

\EasyWeChat\Core\Exceptions\RuntimeException

Returns

boolean

__get()

__get(  $property) : mixed

Return property.

Parameters

$property

Returns

mixed