Trade   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 102
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 8
lcom 0
cbo 0
dl 0
loc 102
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 6 1
A getQrId() 0 4 1
A setQrId() 0 6 1
A getStatus() 0 4 1
A setStatus() 0 6 1
A getCreated() 0 4 1
A setCreated() 0 6 1
1
<?php
2
/*
3
 * This file is part of the slince/youzan-pay package.
4
 *
5
 * (c) Slince <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Slince\YouzanPay\Api;
12
13
class Trade
14
{
15
    /**
16
     * @var int
17
     */
18
    protected $id;
19
20
    /**
21
     * @var int
22
     */
23
    protected $qrId;
24
25
    /**
26
     * @var string
27
     */
28
    protected $status;
29
30
    /**
31
     * @var \DateTime
32
     */
33
    protected $created;
34
35
    /**
36
     * @return int
37
     */
38
    public function getId()
39
    {
40
        return $this->id;
41
    }
42
43
    /**
44
     * @param int $id
45
     *
46
     * @return Trade
47
     */
48
    public function setId($id)
49
    {
50
        $this->id = $id;
51
52
        return $this;
53
    }
54
55
    /**
56
     * @return int
57
     */
58
    public function getQrId()
59
    {
60
        return $this->qrId;
61
    }
62
63
    /**
64
     * @param int $qrId
65
     *
66
     * @return Trade
67
     */
68
    public function setQrId($qrId)
69
    {
70
        $this->qrId = $qrId;
71
72
        return $this;
73
    }
74
75
    /**
76
     * @return string
77
     */
78
    public function getStatus()
79
    {
80
        return $this->status;
81
    }
82
83
    /**
84
     * @param string $status
85
     *
86
     * @return Trade
87
     */
88
    public function setStatus($status)
89
    {
90
        $this->status = $status;
91
92
        return $this;
93
    }
94
95
    /**
96
     * @return \DateTime
97
     */
98
    public function getCreated()
99
    {
100
        return $this->created;
101
    }
102
103
    /**
104
     * @param \DateTime $created
105
     *
106
     * @return Trade
107
     */
108
    public function setCreated($created)
109
    {
110
        $this->created = $created;
111
112
        return $this;
113
    }
114
}