Provider::getParameters()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace DoS\SMSBundle\Model;
4
5
class Provider implements ProviderInterface
6
{
7
    use TimestampTrait;
8
9
    /**
10
     * @var int
11
     */
12
    protected $id;
13
14
    /**
15
     * @var string
16
     */
17
    protected $name;
18
19
    /**
20
     * @var string
21
     */
22
    protected $endpoint;
23
24
    /**
25
     * @var string
26
     */
27
    protected $description;
28
29
    /**
30
     * @var string
31
     */
32
    protected $callbackUrl;
33
34
    /**
35
     * @var array
36
     */
37
    protected $parameters = array();
38
39
    /**
40
     * @var string
41
     */
42
    protected $method = 'POST';
43
44
    /**
45
     * @var bool
46
     */
47
    protected $actived = false;
48
49
    /**
50
     * @var float
51
     */
52
    protected $price = 0;
53
54
    /**
55
     * @var string
56
     */
57
    protected $currency = 'THB';
58
59
    /**
60
     * @return int
61
     */
62
    public function getId()
63
    {
64
        return $this->id;
65
    }
66
67
    /**
68
     * @return string
69
     */
70
    public function getName()
71
    {
72
        return $this->name;
73
    }
74
75
    /**
76
     * @param string $name
77
     */
78
    public function setName($name)
79
    {
80
        $this->name = $name;
81
    }
82
83
    /**
84
     * @return string
85
     */
86
    public function getEndpoint()
87
    {
88
        return $this->endpoint;
89
    }
90
91
    /**
92
     * @param string $endpoint
93
     */
94
    public function setEndpoint($endpoint)
95
    {
96
        $this->endpoint = $endpoint;
97
    }
98
99
    /**
100
     * @return string
101
     */
102
    public function getDescription()
103
    {
104
        return $this->description;
105
    }
106
107
    /**
108
     * @param string $description
109
     */
110
    public function setDescription($description)
111
    {
112
        $this->description = $description;
113
    }
114
115
    /**
116
     * @return string
117
     */
118
    public function getCallbackUrl()
119
    {
120
        return $this->callbackUrl;
121
    }
122
123
    /**
124
     * @param string $callbackUrl
125
     */
126
    public function setCallbackUrl($callbackUrl)
127
    {
128
        $this->callbackUrl = $callbackUrl;
129
    }
130
131
    /**
132
     * @return array
133
     */
134
    public function getParameters()
135
    {
136
        return $this->parameters;
137
    }
138
139
    /**
140
     * @param array $parameters
141
     */
142
    public function setParameters($parameters)
143
    {
144
        $this->parameters = $parameters;
145
    }
146
147
    /**
148
     * @return string
149
     */
150
    public function getMethod()
151
    {
152
        return $this->method;
153
    }
154
155
    /**
156
     * @param string $method
157
     */
158
    public function setMethod($method)
159
    {
160
        $this->method = $method;
161
    }
162
163
    /**
164
     * @return bool
165
     */
166
    public function isActived()
167
    {
168
        return $this->actived;
169
    }
170
171
    /**
172
     * @param bool $actived
173
     */
174
    public function setActived($actived)
175
    {
176
        $this->actived = $actived;
177
    }
178
179
    /**
180
     * @return float
181
     */
182
    public function getPrice()
183
    {
184
        return $this->price;
185
    }
186
187
    /**
188
     * @param float $price
189
     */
190
    public function setPrice($price)
191
    {
192
        $this->price = $price;
193
    }
194
195
    /**
196
     * @return string
197
     */
198
    public function getCurrency()
199
    {
200
        return $this->currency;
201
    }
202
203
    /**
204
     * @param string $currency
205
     */
206
    public function setCurrency($currency)
207
    {
208
        $this->currency = $currency;
209
    }
210
}
211