| 1 | <?php |
||
| 20 | class Merchant extends Attribute |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var array |
||
| 24 | */ |
||
| 25 | protected $attributes = [ |
||
| 26 | 'app_id', |
||
| 27 | 'merchant_id', |
||
| 28 | 'key', |
||
| 29 | 'sub_app_id', |
||
| 30 | 'sub_merchant_id', |
||
| 31 | 'ssl_cert_path', |
||
| 32 | 'ssl_key_path', |
||
| 33 | 'fee_type', |
||
| 34 | 'device_info', |
||
| 35 | ]; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Aliases of attributes. |
||
| 39 | * |
||
| 40 | * @var array |
||
| 41 | */ |
||
| 42 | protected $aliases = [ |
||
| 43 | 'app_id' => 'appid', |
||
| 44 | 'key' => 'mch_key', |
||
| 45 | 'merchant_id' => 'mch_id', |
||
| 46 | 'sub_app_id' => 'sub_appid', |
||
| 47 | 'sub_merchant_id' => 'sub_mch_id', |
||
| 48 | 'cert_path' => 'sslcert_path', |
||
| 49 | 'key_path' => 'sslkey_path', |
||
| 50 | ]; |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Constructor. |
||
| 54 | * |
||
| 55 | * @param array $attributes |
||
| 56 | */ |
||
| 57 | public function __construct(array $attributes) |
||
| 63 | } |
||
| 64 |