PHP Class Thenbsp\Wechat\Menu\Create

ファイルを表示 Open project: thenbsp/wechat Class Usage Examples

Protected Properties

Property Type Description
$accessToken Thenbsp\Wechat\Wechat\AccessToken
$buttons 按钮集合

Public Methods

Method Description
__construct ( AccessToken $accessToken ) 构造方法
add ( Thenbsp\Wechat\Menu\ButtonInterface $button ) 添加按钮
doCreate ( ) 发布菜单
getRequestBody ( ) 获取数据

Method Details

__construct() public method

构造方法
public __construct ( AccessToken $accessToken )
$accessToken Thenbsp\Wechat\Wechat\AccessToken

add() public method

添加按钮
public add ( Thenbsp\Wechat\Menu\ButtonInterface $button )
$button Thenbsp\Wechat\Menu\ButtonInterface

doCreate() public method

发布菜单
public doCreate ( )

getRequestBody() public method

获取数据
public getRequestBody ( )

Property Details

$accessToken protected_oe property

Thenbsp\Wechat\Wechat\AccessToken
protected $accessToken

$buttons protected_oe property

按钮集合
protected $buttons