Test Failed
Pull Request — master (#12)
by
unknown
05:03
created

ThreeDS2Data   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 112
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

10 Methods

Rating   Name   Duplication   Size   Complexity  
A getNotificationUrl() 0 4 1
A setNotificationUrl() 0 4 1
A getBrowserInfo() 0 4 1
A setBrowserInfo() 0 4 1
A getBillingAddress() 0 4 1
A setBillingAddress() 0 4 1
A getDeliveryAddress() 0 4 1
A setDeliveryAddress() 0 4 1
A getCardHolderInfo() 0 4 1
A setCardHolderInfo() 0 4 1
1
<?php
2
3
namespace Cardinity\Method\Payment;
4
5
6
use Cardinity\Method\Payment\BrowserInfoInterface;
7
use Cardinity\Method\Payment\Address;
8
use Cardinity\Method\Payment\CardHolderInfo;
9
10
11
class ThreeDS2Data
12
{
13
    /** @type string */
14
    private $notificationUrl;
15
16
    /** @type object */
17
    private $browserInfo;
18
19
    /** @type object */
20
    private $billingAddress;
21
22
    /** @type object */
23
    private $deliveryAddress;
24
25
    /** @type object */
26
    private $cardHolderInfo;
27
28
29
    /**
30
     * @return STRING of notification URL.
31
     */
32
    public function getNotificationUrl()
33
    {
34
        return $this->notificationUrl;
35
    }
36
37
38
    /**
39
     * @param STRING of notification URL
40
     * @return VOID
41
     */
42
    public function setNotificationUrl(string $url) : void
43
    {
44
        $this->notificationUrl = $url;
45
    }
46
47
48
    /** 
49
     * @return BrowserInfoInterface object of browser info.
50
     */
51
    public function getBrowserInfo()
52
    {
53
        return $this->browserInfo;
54
    }
55
56
57
    /**
58
     * @param BrowserInfo object of browser info.
59
     * @return VOID
60
     */
61
    public function setBrowserInfo(BrowserInfo $browserInfo) : void
62
    {
63
        $this->browserInfo = $browserInfo;
64
    }
65
66
67
    /**
68
     * @return Address object of billing address.
69
     */
70
    public function getBillingAddress()
71
    {
72
        return $this->billingAddress;
73
    }
74
75
76
    /**
77
     * @param Address object of billing address interface.
78
     * @return VOID
79
     */
80
    public function setBillingAddress(Address $billingAddress) : void
81
    {
82
        $this->billingAddress = $billingAddress;
83
    }
84
85
86
    /**
87
     * @return DeliveryAddress object of delivery address interface.
88
     */
89
    public function getDeliveryAddress()
90
    {
91
        return $this->deliveryAddress;
92
    }
93
94
95
    /**
96
     * @param Address object of delivery address interface.
97
     * @return VOID
98
     */
99
    public function setDeliveryAddress(Address $deliveryAddress) : void
100
    {
101
        $this->deliveryAddress = $deliveryAddress;
102
    }
103
104
105
    /**
106
     * @return CardHolderInfo object of card holder info interface.
107
     */
108
    public function getCardHolderInfo()
109
    {
110
        return $this->cardHolderInfo;
111
    }
112
113
114
    /**
115
     * @param CardHolderInfo object of card holder info interface.
116
     * @return VOID
117
     */
118
    public function setCardHolderInfo(CardHolderInfo $cardHolderInfo) : void
119
    {
120
        $this->cardHolderInfo = $cardHolderInfo;
121
    }
122
}