ResponseData   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 12
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getIsOk() 0 4 1
1
<?php
2
/**
3
 * @link https://github.com/yiiviet/yii2-payment
4
 * @copyright Copyright (c) 2017 Yii Viet
5
 * @license [New BSD License](http://www.opensource.org/licenses/bsd-license.php)
6
 */
7
8
9
namespace yiiviet\payment\vtcpay;
10
11
use vxm\gatewayclients\ResponseData as BaseResponseData;
12
13
/**
14
 * Lớp ResponseData cung cấp dữ liệu phản hồi từ VTCPay sau khi thực hiện hàm [[request()]] ở [[PaymentGateway]].
15
 *
16
 * @method PaymentClient getClient() đối tượng client đã dùng để thực thi request.
17
 *
18
 * @property PaymentClient $client đối tượng client đã dùng để thực thi request.
19
 * @property bool $isOk trạng thái phản hồi từ VTCPay `TRUE` thành công và ngược lại.
20
 * @property string $redirect_url đường dẫn sẽ redirect khách đến trang thanh toán, chỉ tồn tại khi `isOk` là TRUE.
21
 *
22
 * @author Vuong Minh <[email protected]>
23
 * @since 1.0.2
24
 */
25
class ResponseData extends BaseResponseData
26
{
27
28
    /**
29
     * @inheritdoc
30
     */
31 1
    public function getIsOk(): bool
32
    {
33 1
        return true;
34
    }
35
36
}
37