@@ -21,16 +21,16 @@ trait Parameters
21
21
*/
22
22
public function getVpcMerchant (): ?string
23
23
{
24
- $ this ->getParameter ('vpc_Merchant ' );
24
+ return $ this ->getParameter ('vpc_Merchant ' );
25
25
}
26
26
27
27
/**
28
28
* Thiết lập giá trị merchant id.
29
29
*
30
- * @param string $merchant
30
+ * @param null| string $merchant
31
31
* @return $this
32
32
*/
33
- public function setVpcMerchant (string $ merchant )
33
+ public function setVpcMerchant (? string $ merchant )
34
34
{
35
35
return $ this ->setParameter ('vpc_Merchant ' , $ merchant );
36
36
}
@@ -48,10 +48,10 @@ public function getVpcAccessCode(): ?string
48
48
/**
49
49
* Thiết lập giá trị access code.
50
50
*
51
- * @param string $code
51
+ * @param null| string $code
52
52
* @return $this
53
53
*/
54
- public function setVpcAccessCode (string $ code )
54
+ public function setVpcAccessCode (? string $ code )
55
55
{
56
56
return $ this ->setParameter ('vpc_AccessCode ' , $ code );
57
57
}
@@ -69,10 +69,10 @@ public function getVpcHashKey(): ?string
69
69
/**
70
70
* Thiết lập giá trị hash key dùng để tạo chữ ký dữ liệu (secure hash).
71
71
*
72
- * @param string $key
72
+ * @param null| string $key
73
73
* @return $this
74
74
*/
75
- public function setVpcHashKey (string $ key )
75
+ public function setVpcHashKey (? string $ key )
76
76
{
77
77
return $ this ->setParameter ('vpc_HashKey ' , $ key );
78
78
}
@@ -90,10 +90,10 @@ public function getVpcUser(): ?string
90
90
/**
91
91
* Thiết lập giá trị user.
92
92
*
93
- * @param string $user
93
+ * @param null| string $user
94
94
* @return $this
95
95
*/
96
- public function setVpcUser (string $ user )
96
+ public function setVpcUser (? string $ user )
97
97
{
98
98
return $ this ->setParameter ('vpc_User ' , $ user );
99
99
}
@@ -111,10 +111,10 @@ public function getVpcPassword(): ?string
111
111
/**
112
112
* Thiết lập giá trị password.
113
113
*
114
- * @param string $password
114
+ * @param null| string $password
115
115
* @return $this
116
116
*/
117
- public function setVpcPassword (string $ password )
117
+ public function setVpcPassword (? string $ password )
118
118
{
119
119
return $ this ->setParameter ('vpc_Password ' , $ password );
120
120
}
@@ -132,32 +132,11 @@ public function getVpcVersion(): ?string
132
132
/**
133
133
* Thiết lập giá trị version muốn sử dụng.
134
134
*
135
- * @param string $version
135
+ * @param null| string $version
136
136
* @return $this
137
137
*/
138
- public function setVpcVersion (string $ version )
138
+ public function setVpcVersion (? string $ version )
139
139
{
140
140
return $ this ->setParameter ('vpc_Version ' , $ version );
141
141
}
142
-
143
- /**
144
- * Trả giao diện ngôn ngữ khách dùng để thanh toán.
145
- *
146
- * @return null|string
147
- */
148
- public function getVpcLocale (): ?string
149
- {
150
- return $ this ->getParameter ('vpc_Locale ' );
151
- }
152
-
153
- /**
154
- * Thiết lập giao diện ngôn ngữ khách dùng để thanh toán.
155
- *
156
- * @param string $locale
157
- * @return $this
158
- */
159
- public function setVpcLocale (string $ locale )
160
- {
161
- return $ this ->setParameter ('vpc_Locale ' , $ locale );
162
- }
163
142
}
0 commit comments