Urls   A
last analyzed

Complexity

Total Complexity 13

Size/Duplication

Total Lines 160
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 26
c 0
b 0
f 0
dl 0
loc 160
rs 10
wmc 13

13 Methods

Rating   Name   Duplication   Size   Complexity  
A setCancel() 0 5 1
A urlValidate() 0 3 1
A getCancel() 0 3 1
A setKo() 0 5 1
A setAuthorizedNotificationCallback() 0 5 1
A getKo() 0 3 1
A setOk() 0 5 1
A setRejectedNotificationCallback() 0 5 1
A getRejectedNotificationCallback() 0 3 1
A getInvalidatedNotificationCallback() 0 3 1
A getOk() 0 3 1
A getAuthorizedNotificationCallback() 0 3 1
A setInvalidatedNotificationCallback() 0 5 1
1
<?php
2
3
namespace Pagantis\OrdersApiClient\Model\Order\Configuration;
4
5
use Pagantis\OrdersApiClient\Model\AbstractModel;
6
7
/**
8
 * Class Urls
9
 * @package Pagantis\OrdersApiClient\Model\Order\Configuration
10
 */
11
class Urls extends AbstractModel
12
{
13
    /**
14
     * @var string cancel URL
15
     */
16
    protected $cancel = null;
17
18
    /**
19
     * @var string ko URL
20
     */
21
    protected $ko = null;
22
23
    /**
24
     * @var string $authorizedNotificationCallback URL
25
     */
26
    protected $authorizedNotificationCallback = null;
27
28
    /**
29
     * @var string $rejectedNotificationCallback URL
30
     */
31
    protected $rejectedNotificationCallback = null;
32
33
    /**
34
     * @var string $invalidatedNotificationCallback URL
35
     */
36
    protected $invalidatedNotificationCallback = null;
37
38
    /**
39
     * @var string ok URL
40
     */
41
    protected $ok = null;
42
43
    /**
44
     * @param $url
45
     *
46
     * @return bool
47
     */
48
    public static function urlValidate($url)
49
    {
50
        return false !== filter_var($url, FILTER_VALIDATE_URL);
51
    }
52
53
    /**
54
     * @return string
55
     */
56
    public function getCancel()
57
    {
58
        return $this->cancel;
59
    }
60
61
    /**
62
     * @param string $cancel
63
     *
64
     * @return Urls
65
     */
66
    public function setCancel($cancel)
67
    {
68
        $this->cancel = $cancel;
69
70
        return $this;
71
    }
72
73
    /**
74
     * @return string
75
     */
76
    public function getKo()
77
    {
78
        return $this->ko;
79
    }
80
81
    /**
82
     * @param string $ko
83
     *
84
     * @return Urls
85
     */
86
    public function setKo($ko)
87
    {
88
        $this->ko = $ko;
89
90
        return $this;
91
    }
92
93
    /**
94
     * @return string
95
     */
96
    public function getAuthorizedNotificationCallback()
97
    {
98
        return $this->authorizedNotificationCallback;
99
    }
100
101
    /**
102
     * @param string $authorizedNotificationCallback
103
     *
104
     * @return Urls
105
     */
106
    public function setAuthorizedNotificationCallback($authorizedNotificationCallback)
107
    {
108
        $this->authorizedNotificationCallback = $authorizedNotificationCallback;
109
110
        return $this;
111
    }
112
113
    /**
114
     * @return string
115
     */
116
    public function getRejectedNotificationCallback()
117
    {
118
        return $this->rejectedNotificationCallback;
119
    }
120
121
    /**
122
     * @param string $rejectedNotificationCallback
123
     *
124
     * @return Urls
125
     */
126
    public function setRejectedNotificationCallback($rejectedNotificationCallback)
127
    {
128
        $this->rejectedNotificationCallback = $rejectedNotificationCallback;
129
130
        return $this;
131
    }
132
133
    /**
134
     * @return string
135
     */
136
    public function getInvalidatedNotificationCallback()
137
    {
138
        return $this->invalidatedNotificationCallback;
139
    }
140
141
    /**
142
     * @param string $invalidatedNotificationCallback
143
     *
144
     * @return Urls
145
     */
146
    public function setInvalidatedNotificationCallback($invalidatedNotificationCallback)
147
    {
148
        $this->invalidatedNotificationCallback = $invalidatedNotificationCallback;
149
150
        return $this;
151
    }
152
153
    /**
154
     * @return string
155
     */
156
    public function getOk()
157
    {
158
        return $this->ok;
159
    }
160
161
    /**
162
     * @param string $ok
163
     *
164
     * @return Urls
165
     */
166
    public function setOk($ok)
167
    {
168
        $this->ok = $ok;
169
170
        return $this;
171
    }
172
}
173