PHP Class Thenbsp\Wechat\Menu\Create

Afficher le fichier Open project: thenbsp/wechat Class Usage Examples

Protected Properties

Свойство Type Description
$accessToken Thenbsp\Wechat\Wechat\AccessToken
$buttons 按钮集合

Méthodes publiques

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

Method Details

__construct() public méthode

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

add() public méthode

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

doCreate() public méthode

发布菜单
public doCreate ( )

getRequestBody() public méthode

获取数据
public getRequestBody ( )

Property Details

$accessToken protected_oe property

Thenbsp\Wechat\Wechat\AccessToken
protected $accessToken

$buttons protected_oe property

按钮集合
protected $buttons