for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the overtrue/wechat.
*
* (c) overtrue <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace EasyWeChat\Kernel\Messages;
/**
* Class Transfer.
* @property string $to
* @property string $account
class Transfer extends Message
{
* Messages type.
* @var string
protected $type = 'transfer_customer_service';
* Properties.
* @var array
protected $properties = [
'account',
];
* Transfer constructor.
* @param string|null $account
public function __construct(string $account = null)
if (!is_null($account)) {
$this->account = $account;
}
public function toXmlArray()
return empty($this->get('account')) ? [] : [
'TransInfo' => [
'KfAccount' => $this->get('account'),
],