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