PayRefundResponse   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 1
dl 0
loc 26
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getCode() 0 4 1
A getTransactionId() 0 4 1
A getTransactionReference() 0 4 1
1
<?php
2
/**
3
 * @link https://github.com/phpviet/omnipay-momo
4
 * @copyright (c) PHP Viet
5
 * @license [MIT](http://www.opensource.org/licenses/MIT)
6
 */
7
8
namespace Omnipay\MoMo\Message;
9
10
/**
11
 * @author Vuong Minh <[email protected]>
12
 * @since 1.0.0
13
 */
14
class PayRefundResponse extends AbstractResponse
15
{
16
    /**
17
     * {@inheritdoc}
18
     */
19
    public function getCode(): ?string
20
    {
21
        return $this->data['status'] ?? null;
22
    }
23
24
    /**
25
     * {@inheritdoc}
26
     */
27
    public function getTransactionId(): ?string
28
    {
29
        return $this->data['partnerRefId'] ?? null;
30
    }
31
32
    /**
33
     * {@inheritdoc}
34
     */
35
    public function getTransactionReference(): ?string
36
    {
37
        return $this->data['transid'] ?? null;
38
    }
39
}
40