Completed
Push — master ( ff4ea2...6a4b58 )
by
unknown
02:23
created

Payment   A

Complexity

Total Complexity 16

Size/Duplication

Total Lines 170
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

16 Methods

Rating   Name   Duplication   Size   Complexity  
A getProductId() 0 4 1
A setProductId() 0 4 1
A getMerchantId() 0 4 1
A setMerchantId() 0 4 1
A getCode() 0 4 1
A setCode() 0 4 1
A getCf() 0 4 1
A setCf() 0 4 1
A getOkUrl() 0 4 1
A setOkUrl() 0 4 1
A getKoUrl() 0 4 1
A setKoUrl() 0 4 1
A getCbUrl() 0 4 1
A setCbUrl() 0 4 1
A getDate() 0 4 1
A setDate() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AcquiroPay\Models\Entities;
6
7
use DateTime;
8
9
class Payment extends Entity
10
{
11
    /**
12
     * @var int
13
     */
14
    private $productId;
15
16
    /**
17
     * @var int
18
     */
19
    private $merchantId;
20
21
    /**
22
     * @var DateTime
23
     */
24
    private $date;
25
26
    /**
27
     * @var string
28
     */
29
    private $code;
30
31
    /**
32
     * @var string
33
     */
34
    private $cf;
35
36
    /**
37
     * @var string
38
     */
39
    private $okUrl;
40
41
    /**
42
     * @var string
43
     */
44
    private $koUrl;
45
46
    /**
47
     * @var string
48
     */
49
    private $cbUrl;
50
51
    /**
52
     * @return int
53
     */
54
    public function getProductId(): int
55
    {
56
        return $this->productId;
57
    }
58
59
    /**
60
     * @param int $productId
61
     */
62
    public function setProductId(int $productId)
63
    {
64
        $this->productId = $productId;
65
    }
66
67
    /**
68
     * @return int
69
     */
70
    public function getMerchantId(): int
71
    {
72
        return $this->merchantId;
73
    }
74
75
    /**
76
     * @param int $merchantId
77
     */
78
    public function setMerchantId(int $merchantId)
79
    {
80
        $this->merchantId = $merchantId;
81
    }
82
83
    /**
84
     * @return string
85
     */
86
    public function getCode(): string
87
    {
88
        return $this->code;
89
    }
90
91
    /**
92
     * @param string $code
93
     */
94
    public function setCode(string $code)
95
    {
96
        $this->code = $code;
97
    }
98
99
    /**
100
     * @return string
101
     */
102
    public function getCf(): ?string
103
    {
104
        return $this->cf;
105
    }
106
107
    /**
108
     * @param string $cf
109
     */
110
    public function setCf(?string $cf)
111
    {
112
        $this->cf = $cf;
113
    }
114
115
    /**
116
     * @return string
117
     */
118
    public function getOkUrl(): ?string
119
    {
120
        return $this->okUrl;
121
    }
122
123
    /**
124
     * @param string $okUrl
125
     */
126
    public function setOkUrl(?string $okUrl)
127
    {
128
        $this->okUrl = $okUrl;
129
    }
130
131
    /**
132
     * @return string
133
     */
134
    public function getKoUrl(): ?string
135
    {
136
        return $this->koUrl;
137
    }
138
139
    /**
140
     * @param string $koUrl
141
     */
142
    public function setKoUrl(?string $koUrl)
143
    {
144
        $this->koUrl = $koUrl;
145
    }
146
147
    /**
148
     * @return string
149
     */
150
    public function getCbUrl(): ?string
151
    {
152
        return $this->cbUrl;
153
    }
154
155
    /**
156
     * @param string $cbUrl
157
     */
158
    public function setCbUrl(?string $cbUrl)
159
    {
160
        $this->cbUrl = $cbUrl;
161
    }
162
163
    /**
164
     * @return DateTime
165
     */
166
    public function getDate(): DateTime
167
    {
168
        return $this->date;
169
    }
170
171
    /**
172
     * @param DateTime $date
173
     */
174
    public function setDate(DateTime $date)
175
    {
176
        $this->date = $date;
177
    }
178
}