\EasyWeChat\StaffTransformer

Class Transformer.

Summary

Methods
Properties
Constants
transform()
transformText()
transformImage()
transformMusic()
transformVideo()
transformVoice()
transformNews()
transformMaterial()
transformCard()
transformMiniProgramPage()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

transform()

transform(array|string|\EasyWeChat\Message\AbstractMessage  $message) : array

transform message to XML.

Parameters

array|string|\EasyWeChat\Message\AbstractMessage $message

Returns

array

transformText()

transformText(\EasyWeChat\Message\AbstractMessage  $message) : array

Transform text message.

Parameters

\EasyWeChat\Message\AbstractMessage $message

Returns

array

transformImage()

transformImage(\EasyWeChat\Message\AbstractMessage  $message) : array

Transform image message.

Parameters

\EasyWeChat\Message\AbstractMessage $message

Returns

array

transformMusic()

transformMusic(\EasyWeChat\Message\AbstractMessage  $message) : array

Transform music message.

Parameters

\EasyWeChat\Message\AbstractMessage $message

Returns

array

transformVideo()

transformVideo(\EasyWeChat\Message\AbstractMessage  $message) : array

Transform video message.

Parameters

\EasyWeChat\Message\AbstractMessage $message

Returns

array

transformVoice()

transformVoice(\EasyWeChat\Message\AbstractMessage  $message) : array

Transform voice message.

Parameters

\EasyWeChat\Message\AbstractMessage $message

Returns

array

transformNews()

transformNews(  $news) : array

Transform articles message.

Parameters

$news

Returns

array

transformMaterial()

transformMaterial(\EasyWeChat\Message\AbstractMessage  $message) : array

Transform material message.

Parameters

\EasyWeChat\Message\AbstractMessage $message

Returns

array

transformCard()

transformCard(\EasyWeChat\Message\AbstractMessage  $message) : array

Transform wxcard message.

Parameters

\EasyWeChat\Message\AbstractMessage $message

Returns

array

transformMiniProgramPage()

transformMiniProgramPage(\EasyWeChat\Message\AbstractMessage  $message) : array

Transform minprogrampage message.

Parameters

\EasyWeChat\Message\AbstractMessage $message

Returns

array