* +---------------------------------------------------------------------- */ 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'), ], ]; } }