Files
huangjingfen/pro_v3.5.1/crmeb/services/wechat/message/Transfer.php

52 lines
1.0 KiB
PHP
Raw Normal View History

<?php
// +----------------------------------------------------------------------
// | Author: ScottPan Team
// +----------------------------------------------------------------------
namespace crmeb\services\wechat\message;
class Transfer extends Message
{
/**
* Messages type.
*
* @var string
*/
protected string $type = 'transfer_customer_service';
/**
* Properties.
*
* @var array
*/
protected array $properties = [
'account',
];
/**
* Transfer constructor.
*
* @param string|null $account
*/
public function __construct(string $account = null)
{
parent::__construct(compact('account'));
}
/**
* @return array
* @author 等风来
* @email 136327134@qq.com
* @date 2023/9/26
*/
public function toXmlArray(): array
{
return empty($this->get('account')) ? [] : [
'TransInfo' => [
'KfAccount' => $this->get('account'),
],
];
}
}