GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

RequestInitiatePayment   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 90
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 90
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getMerchantInfo() 0 4 1
A setMerchantInfo() 0 5 1
A getCustomerInfo() 0 4 1
A setCustomerInfo() 0 5 1
A getTransaction() 0 4 1
A setTransaction() 0 5 1
1
<?php
2
3
namespace zaporylie\Vipps\Model\Payment;
4
5
use JMS\Serializer\Annotation as Serializer;
6
7
/**
8
 * Class RequestInitiatePayment
9
 *
10
 * @package Vipps\Model\Payment
11
 */
12
class RequestInitiatePayment
13
{
14
15
    /**
16
     * @var \zaporylie\Vipps\Model\Payment\MerchantInfo
17
     * @Serializer\Type("zaporylie\Vipps\Model\Payment\MerchantInfo")
18
     */
19
    protected $merchantInfo;
20
21
    /**
22
     * @var \zaporylie\Vipps\Model\Payment\CustomerInfo
23
     * @Serializer\Type("zaporylie\Vipps\Model\Payment\CustomerInfo")
24
     */
25
    protected $customerInfo;
26
27
    /**
28
     * @var \zaporylie\Vipps\Model\Payment\Transaction
29
     * @Serializer\Type("zaporylie\Vipps\Model\Payment\Transaction")
30
     */
31
    protected $transaction;
32
33
    /**
34
     * Gets merchantInfo value.
35
     *
36
     * @return \zaporylie\Vipps\Model\Payment\MerchantInfo
37
     */
38
    public function getMerchantInfo()
39
    {
40
        return $this->merchantInfo;
41
    }
42
43
    /**
44
     * Sets merchantInfo variable.
45
     *
46
     * @param \zaporylie\Vipps\Model\Payment\MerchantInfo $merchantInfo
47
     *
48
     * @return $this
49
     */
50
    public function setMerchantInfo(MerchantInfo $merchantInfo)
51
    {
52
        $this->merchantInfo = $merchantInfo;
53
        return $this;
54
    }
55
56
    /**
57
     * Gets customerInfo value.
58
     *
59
     * @return \zaporylie\Vipps\Model\Payment\CustomerInfo
60
     */
61
    public function getCustomerInfo()
62
    {
63
        return $this->customerInfo;
64
    }
65
66
    /**
67
     * Sets customerInfo variable.
68
     *
69
     * @param \zaporylie\Vipps\Model\Payment\CustomerInfo $customerInfo
70
     *
71
     * @return $this
72
     */
73
    public function setCustomerInfo(CustomerInfo $customerInfo)
74
    {
75
        $this->customerInfo = $customerInfo;
76
        return $this;
77
    }
78
79
    /**
80
     * Gets transaction value.
81
     *
82
     * @return \zaporylie\Vipps\Model\Payment\Transaction
83
     */
84
    public function getTransaction()
85
    {
86
        return $this->transaction;
87
    }
88
89
    /**
90
     * Sets transaction variable.
91
     *
92
     * @param \zaporylie\Vipps\Model\Payment\Transaction $transaction
93
     *
94
     * @return $this
95
     */
96
    public function setTransaction(Transaction $transaction)
97
    {
98
        $this->transaction = $transaction;
99
        return $this;
100
    }
101
}
102