Order   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 37
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace EntWeChat\Payment;
4
5
use EntWeChat\Support\Attribute;
6
7
/**
8
 * Class Order.
9
 *
10
 * @property string $body
11
 * @property string $detail
12
 * @property string $attach
13
 * @property string $out_trade_no
14
 * @property string $fee_type
15
 * @property string $total_fee
16
 * @property string $spbill_create_ip
17
 * @property string $time_start
18
 * @property string $time_expire
19
 * @property string $goods_tag
20
 * @property string $notify_url
21
 * @property string $trade_type
22
 * @property string $product_id
23
 * @property string $limit_pay
24
 * @property string $openid
25
 * @property string $sub_openid
26
 * @property string $auth_code
27
 */
28
class Order extends Attribute
29
{
30
    const JSAPI = 'JSAPI';
31
    const NATIVE = 'NATIVE';
32
    const APP = 'APP';
33
    const MICROPAY = 'MICROPAY';
34
35
    protected $attributes = [
36
        'body',
37
        'detail',
38
        'attach',
39
        'out_trade_no',
40
        'fee_type',
41
        'total_fee',
42
        'spbill_create_ip',
43
        'time_start',
44
        'time_expire',
45
        'goods_tag',
46
        'notify_url',
47
        'trade_type',
48
        'product_id',
49
        'limit_pay',
50
        'openid',
51
        'sub_openid',
52
        'auth_code',
53
    ];
54
55
    /**
56
     * Constructor.
57
     *
58
     * @param array $attributes
59
     */
60
    public function __construct(array $attributes)
61
    {
62
        parent::__construct($attributes);
63
    }
64
}
65