1 | <?php |
||
38 | class Merchant extends Attribute |
||
39 | { |
||
40 | /** |
||
41 | * @var array |
||
42 | */ |
||
43 | protected $attributes = [ |
||
44 | 'app_id', |
||
45 | 'merchant_id', |
||
46 | 'key', |
||
47 | 'sub_app_id', |
||
48 | 'sub_merchant_id', |
||
49 | 'ssl_cert_path', |
||
50 | 'ssl_key_path', |
||
51 | 'fee_type', |
||
52 | 'device_info', |
||
53 | ]; |
||
54 | |||
55 | /** |
||
56 | * Aliases of attributes. |
||
57 | * |
||
58 | * @var array |
||
59 | */ |
||
60 | protected $aliases = [ |
||
61 | 'app_id' => 'appid', |
||
62 | 'key' => 'mch_key', |
||
63 | 'merchant_id' => 'mch_id', |
||
64 | 'cert_path' => 'sslcert_path', |
||
65 | 'key_path' => 'sslkey_path', |
||
66 | ]; |
||
67 | |||
68 | /** |
||
69 | * Constructor. |
||
70 | * |
||
71 | * @param array $attributes |
||
72 | */ |
||
73 | 27 | public function __construct(array $attributes) |
|
79 | } |
||
80 |