for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* MpVideo.php
*
* Part of Overtrue\Wechat.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
* @author overtrue <[email protected]>
* @copyright 2015 overtrue <[email protected]>
* @link https://github.com/overtrue
* @link http://overtrue.me
*/
namespace Overtrue\Wechat\Messages;
* 群发视频消息
* @property string $media_id
class MpVideo extends BaseMessage
{
* 属性
* @var array
protected $properties = array(
'media_id',
);
* 设置视频消息
* @param string $mediaId
* @return Video
public function media($mediaId)
$this->setAttribute('media_id', $mediaId);
return $this;
}
* 生成主动消息数组
* @return array
public function toStaff()
return array(
'mpvideo' => array(
'media_id' => $this->media_id,
),