QueryTransactionResponse::isSuccessful()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 0
1
<?php
2
/**
3
 * @link https://github.com/phpviet/omnipay-onepay
4
 *
5
 * @copyright (c) PHP Viet
6
 * @license [MIT](https://opensource.org/licenses/MIT)
7
 */
8
9
namespace Omnipay\OnePay\Message;
10
11
/**
12
 * @author Vuong Minh <[email protected]>
13
 * @since 1.0.0
14
 */
15
class QueryTransactionResponse extends Response
16
{
17
    /**
18
     * {@inheritdoc}
19
     */
20
    public function isSuccessful(): bool
21
    {
22
        return parent::isSuccessful() && 0 === strcasecmp('y', $this->data['vpc_DRExists']);
23
    }
24
}
25