ResponseData::getIsOk()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 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