\EasyWeChat\BroadcastTransformer

Class Transformer.

Summary

Methods
Properties
Constants
__construct()
transform()
transformText()
transformNews()
transformImage()
transformVideo()
transformMpvideo()
transformVoice()
transformCard()
No public properties found
No constants found
No protected methods found
$msgType
$message
N/A
No private methods found
No private properties found
N/A

Properties

$msgType

$msgType : string

Message type.

Type

string

$message

$message : mixed

message.

Type

mixed

Methods

__construct()

__construct(  $msgType,   $message) 

Transformer constructor.

Parameters

$msgType
$message

transform()

transform() : array

Transform message.

Returns

array

transformText()

transformText(string  $message) : array

Transform text message.

Parameters

string $message

Returns

array

transformNews()

transformNews(string  $message) : array

Transform news message.

Parameters

string $message

Returns

array

transformImage()

transformImage(string  $message) : array

Transform image message.

Parameters

string $message

Returns

array

transformVideo()

transformVideo(array  $message) : array

Transform video message.

Parameters

array $message

Throws

\EasyWeChat\Core\Exceptions\InvalidArgumentException

Returns

array

transformMpvideo()

transformMpvideo(string  $message) : array

Transform mpvideo message.

Parameters

string $message

Returns

array

transformVoice()

transformVoice(string  $message) : array

Transform voice message.

Parameters

string $message

Returns

array

transformCard()

transformCard(  $message) : array

Transform card message.

Parameters

$message

Returns

array