Skip to content

Commit aa58a2d

Browse files
Clear self type declarations for inherit classes
1 parent 558fc2d commit aa58a2d

13 files changed

+75
-75
lines changed

src/Concerns/Parameters.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ public function getAccessKey(): ?string
2727
* Thiết lập access key do MoMo cấp.
2828
*
2929
* @param string $key
30-
* @return self
30+
* @return $this
3131
*/
32-
public function setAccessKey(string $key): self
32+
public function setAccessKey(string $key)
3333
{
3434
return $this->setParameter('accessKey', $key);
3535
}
@@ -48,9 +48,9 @@ public function getSecretKey(): ?string
4848
* Thiết lập secret key do MoMo cấp.
4949
*
5050
* @param string $key
51-
* @return self
51+
* @return $this
5252
*/
53-
public function setSecretKey(string $key): self
53+
public function setSecretKey(string $key)
5454
{
5555
return $this->setParameter('secretKey', $key);
5656
}
@@ -69,9 +69,9 @@ public function getPartnerCode(): ?string
6969
* Thiết lập partner code do MoMo cấp.
7070
*
7171
* @param string $code
72-
* @return self
72+
* @return $this
7373
*/
74-
public function setPartnerCode(string $code): self
74+
public function setPartnerCode(string $code)
7575
{
7676
return $this->setParameter('partnerCode', $code);
7777
}
@@ -90,9 +90,9 @@ public function getPublicKey(): ?string
9090
* Thiết lập public key do MoMo cấp.
9191
*
9292
* @param string $key
93-
* @return self
93+
* @return $this
9494
*/
95-
public function setPublicKey(string $key): self
95+
public function setPublicKey(string $key)
9696
{
9797
return $this->setParameter('publicKey', $key);
9898
}

src/Message/AbstractIncomingRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function getData(): array
3030
/**
3131
* {@inheritdoc}
3232
*/
33-
public function initialize(array $parameters = []): self
33+
public function initialize(array $parameters = [])
3434
{
3535
parent::initialize($parameters);
3636

src/Message/AllInOne/AbstractSignatureRequest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ public function getOrderId(): ?string
3636
* Thiết lập id đơn hàng.
3737
*
3838
* @param string $id
39-
* @return self
39+
* @return $this
4040
*/
41-
public function setOrderId(string $id): self
41+
public function setOrderId(string $id)
4242
{
4343
return $this->setParameter('orderId', $id);
4444
}
@@ -57,9 +57,9 @@ public function getRequestId(): ?string
5757
* Thiết lập request id của đơn hàng.
5858
*
5959
* @param string $id
60-
* @return self
60+
* @return $this
6161
*/
62-
public function setRequestId(string $id): self
62+
public function setRequestId(string $id)
6363
{
6464
return $this->setParameter('requestId', $id);
6565
}

src/Message/AllInOne/PurchaseRequest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class PurchaseRequest extends AbstractSignatureRequest
2323
/**
2424
* {@inheritdoc}
2525
*/
26-
public function initialize(array $parameters = []): self
26+
public function initialize(array $parameters = [])
2727
{
2828
parent::initialize($parameters);
2929
$this->setOrderInfo($this->getParameter('orderInfo') ?? '');
@@ -47,9 +47,9 @@ public function getExtraData(): ?string
4747
* Thiết lập dữ liệu kèm theo đơn hàng.
4848
*
4949
* @param string $data
50-
* @return self
50+
* @return $this
5151
*/
52-
public function setExtraData(string $data): self
52+
public function setExtraData(string $data)
5353
{
5454
return $this->setParameter('extraData', $data);
5555
}
@@ -68,9 +68,9 @@ public function getOrderInfo(): ?string
6868
* Thiết lập thông tin đơn hàng.
6969
*
7070
* @param string $info
71-
* @return self
71+
* @return $this
7272
*/
73-
public function setOrderInfo(string $info): self
73+
public function setOrderInfo(string $info)
7474
{
7575
return $this->setParameter('orderInfo', $info);
7676
}

src/Message/AllInOne/QueryRefundRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class QueryRefundRequest extends AbstractSignatureRequest
2323
/**
2424
* {@inheritdoc}
2525
*/
26-
public function initialize(array $parameters = []): self
26+
public function initialize(array $parameters = [])
2727
{
2828
parent::initialize($parameters);
2929
$this->setParameter('requestType', 'refundStatus');

src/Message/AllInOne/QueryTransactionRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class QueryTransactionRequest extends AbstractSignatureRequest
2323
/**
2424
* {@inheritdoc}
2525
*/
26-
public function initialize(array $parameters = []): self
26+
public function initialize(array $parameters = [])
2727
{
2828
parent::initialize($parameters);
2929
$this->setParameter('requestType', 'transactionStatus');

src/Message/AllInOne/RefundRequest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class RefundRequest extends AbstractSignatureRequest
2323
/**
2424
* {@inheritdoc}
2525
*/
26-
public function initialize(array $parameters = []): self
26+
public function initialize(array $parameters = [])
2727
{
2828
parent::initialize($parameters);
2929
$this->setParameter('requestType', 'refundMoMoWallet');
@@ -42,7 +42,7 @@ public function getTransactionId(): ?string
4242
/**
4343
* {@inheritdoc}
4444
*/
45-
public function setTransactionId($value): self
45+
public function setTransactionId($value)
4646
{
4747
return $this->setTransId($value);
4848
}
@@ -61,9 +61,9 @@ public function getTransId(): ?string
6161
* Thiết lập mã giao dịch của MoMo.
6262
*
6363
* @param string $id
64-
* @return self
64+
* @return $this
6565
*/
66-
public function setTransId(string $id): self
66+
public function setTransId(string $id)
6767
{
6868
return $this->setParameter('transId', $id);
6969
}

src/Message/AppInApp/PurchaseRequest.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class PurchaseRequest extends AbstractHashRequest
1818
/**
1919
* {@inheritdoc}
2020
*/
21-
public function initialize(array $parameters = []): self
21+
public function initialize(array $parameters = [])
2222
{
2323
parent::initialize($parameters);
2424
$this->setParameter('payType', 3);
@@ -64,9 +64,9 @@ public function getAppData(): ?string
6464
* Thiết app token từ app MoMo gửi sang.
6565
*
6666
* @param string $appData
67-
* @return self
67+
* @return $this
6868
*/
69-
public function setAppData(string $appData): self
69+
public function setAppData(string $appData)
7070
{
7171
return $this->setParameter('appData', $appData);
7272
}
@@ -85,9 +85,9 @@ public function getStoreId(): ?string
8585
* Thiết lập mã cửa hàng.
8686
*
8787
* @param string $id
88-
* @return self
88+
* @return $this
8989
*/
90-
public function setStoreId(string $id): self
90+
public function setStoreId(string $id)
9191
{
9292
return $this->setParameter('storeId', $id);
9393
}
@@ -106,9 +106,9 @@ public function getStoreName(): ?string
106106
* Thiết lập tên cửa hàng.
107107
*
108108
* @param string $name
109-
* @return self
109+
* @return $this
110110
*/
111-
public function setStoreName(string $name): self
111+
public function setStoreName(string $name)
112112
{
113113
return $this->setParameter('storeName', $name);
114114
}
@@ -127,9 +127,9 @@ public function getPartnerRefId(): ?string
127127
* Thiết lập mã đơn hàng.
128128
*
129129
* @param string $id
130-
* @return self
130+
* @return $this
131131
*/
132-
public function setPartnerRefId(string $id): self
132+
public function setPartnerRefId(string $id)
133133
{
134134
return $this->setParameter('partnerRefId', $id);
135135
}
@@ -148,9 +148,9 @@ public function getPartnerTransId(): ?string
148148
* Thiết lập mã đơn hàng bổ sung.
149149
*
150150
* @param string $id
151-
* @return self
151+
* @return $this
152152
*/
153-
public function setPartnerTransId(string $id): self
153+
public function setPartnerTransId(string $id)
154154
{
155155
return $this->setParameter('partnerTransId', $id);
156156
}
@@ -169,9 +169,9 @@ public function getPartnerName(): ?string
169169
* Thiết lập tên công ty, tổ chức của bạn.
170170
*
171171
* @param string $name
172-
* @return self
172+
* @return $this
173173
*/
174-
public function setPartnerName(string $name): self
174+
public function setPartnerName(string $name)
175175
{
176176
return $this->setParameter('partnerName', $name);
177177
}
@@ -190,9 +190,9 @@ public function getCustomerNumber(): ?string
190190
* Thiết lập số điện thoại khách hàng.
191191
*
192192
* @param string $number
193-
* @return self
193+
* @return $this
194194
*/
195-
public function setCustomerNumber(string $number): self
195+
public function setCustomerNumber(string $number)
196196
{
197197
return $this->setParameter('customerNumber', $number);
198198
}

src/Message/POS/PurchaseRequest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class PurchaseRequest extends AbstractHashRequest
1818
/**
1919
* {@inheritdoc}
2020
*/
21-
public function initialize(array $parameters = []): self
21+
public function initialize(array $parameters = [])
2222
{
2323
parent::initialize($parameters);
2424
$this->setParameter('payType', 3);
@@ -67,9 +67,9 @@ public function getStoreId(): ?string
6767
* Thiết lập mã cửa hàng.
6868
*
6969
* @param string $id
70-
* @return self
70+
* @return $this
7171
*/
72-
public function setStoreId(string $id): self
72+
public function setStoreId(string $id)
7373
{
7474
return $this->setParameter('storeId', $id);
7575
}
@@ -88,9 +88,9 @@ public function getStoreName(): ?string
8888
* Thiết lập tên cửa hàng.
8989
*
9090
* @param string $name
91-
* @return self
91+
* @return $this
9292
*/
93-
public function setStoreName(string $name): self
93+
public function setStoreName(string $name)
9494
{
9595
return $this->setParameter('storeName', $name);
9696
}
@@ -109,9 +109,9 @@ public function getPartnerRefId(): ?string
109109
* Thiết lập mã đơn hàng.
110110
*
111111
* @param string $id
112-
* @return self
112+
* @return $this
113113
*/
114-
public function setPartnerRefId(string $id): self
114+
public function setPartnerRefId(string $id)
115115
{
116116
return $this->setParameter('partnerRefId', $id);
117117
}
@@ -130,9 +130,9 @@ public function getPaymentCode(): ?string
130130
* Thiết lập mã khách thanh toán.
131131
*
132132
* @param string $code
133-
* @return self
133+
* @return $this
134134
*/
135-
public function setPaymentCode(string $code): self
135+
public function setPaymentCode(string $code)
136136
{
137137
return $this->setParameter('paymentCode', $code);
138138
}

src/Message/PayConfirmRequest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ public function getRequestId(): ?string
4545
* Thiết lập request id của đơn hàng.
4646
*
4747
* @param string $id
48-
* @return self
48+
* @return $this
4949
*/
50-
public function setRequestId(string $id): self
50+
public function setRequestId(string $id)
5151
{
5252
return $this->setParameter('requestId', $id);
5353
}
@@ -66,9 +66,9 @@ public function getPartnerRefId(): ?string
6666
* Thiết lập mã đơn hàng.
6767
*
6868
* @param string $id
69-
* @return self
69+
* @return $this
7070
*/
71-
public function setPartnerRefId(string $id): self
71+
public function setPartnerRefId(string $id)
7272
{
7373
return $this->setParameter('partnerRefId', $id);
7474
}
@@ -87,9 +87,9 @@ public function getMomoTransId(): ?string
8787
* Thiết lập mã giao dịch của MoMo.
8888
*
8989
* @param string $id
90-
* @return self
90+
* @return $this
9191
*/
92-
public function setMomoTransId(string $id): self
92+
public function setMomoTransId(string $id)
9393
{
9494
return $this->setParameter('momoTransId', $id);
9595
}
@@ -108,9 +108,9 @@ public function getCustomerNumber(): ?string
108108
* Thiết lập số điện thoại khách hàng.
109109
*
110110
* @param string $number
111-
* @return self
111+
* @return $this
112112
*/
113-
public function setCustomerNumber(string $number): self
113+
public function setCustomerNumber(string $number)
114114
{
115115
return $this->setParameter('customerNumber', $number);
116116
}
@@ -129,9 +129,9 @@ public function getRequestType(): ?string
129129
* Thiết lập loại request type yêu cầu MoMo, commit hoặc rollback.
130130
*
131131
* @param string $type
132-
* @return self
132+
* @return $this
133133
*/
134-
public function setRequestType(string $type): self
134+
public function setRequestType(string $type)
135135
{
136136
return $this->setParameter('requestType', $type);
137137
}

0 commit comments

Comments
 (0)