\EasyWeChat\BroadcastMessageBuilder

Class MessageBuilder.

Summary

Methods
Properties
Constants
msgType()
message()
to()
build()
buildPreview()
__get()
No public properties found
No constants found
No protected methods found
$to
$msgType
$message
N/A
buildGroup()
buildTo()
$msgTypes
$previewBys
N/A

Properties

$to

$to : mixed

Message target user or group.

Type

mixed

$msgType

$msgType : string

Message type.

Type

string

$message

$message : mixed

Message.

Type

mixed

$msgTypes

$msgTypes : array

Message types.

Type

array

$previewBys

$previewBys : array

Preview bys.

Type

array

Methods

msgType()

msgType(string  $msgType) : \EasyWeChat\Broadcast\MessageBuilder

Set message type.

Parameters

string $msgType

Throws

\EasyWeChat\Core\Exceptions\InvalidArgumentException

Returns

\EasyWeChat\Broadcast\MessageBuilder

build()

build() : boolean

Build message.

Throws

\EasyWeChat\Core\Exceptions\RuntimeException

Returns

boolean

buildPreview()

buildPreview(string  $by) : array

Build preview message.

Parameters

string $by

Throws

\EasyWeChat\Core\Exceptions\RuntimeException
\EasyWeChat\Core\Exceptions\InvalidArgumentException

Returns

array

__get()

__get(string  $property) : mixed

Return property.

Parameters

string $property

Returns

mixed

buildGroup()

buildGroup(mixed  $group) : array

Build group.

Parameters

mixed $group

Returns

array

buildTo()

buildTo(string  $to, string  $by) : array

Build to.

Parameters

string $to
string $by

Returns

array