Completed
Push — master ( b2db07...6ada9a )
by luca
08:41
created

UserListPricing   A

Complexity

Total Complexity 20

Size/Duplication

Total Lines 237
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 20
lcom 0
cbo 1
dl 0
loc 237
rs 10
c 0
b 0
f 0

20 Methods

Rating   Name   Duplication   Size   Complexity  
A getStartDate() 0 4 1
A getEndDate() 0 4 1
A getCurrencyCodeString() 0 4 1
A getUserListCost() 0 4 1
A getCreationTime() 0 4 1
A getCostType() 0 4 1
A getSaleType() 0 4 1
A isPricingActive() 0 4 1
A getApprovalState() 0 4 1
A getRejectionReason() 0 4 1
A setStartDate() 0 4 1
A setEndDate() 0 4 1
A setCurrencyCodeString() 0 4 1
A setUserListCost() 0 4 1
A setCreationTime() 0 4 1
A setCostType() 0 4 1
A setSaleType() 0 4 1
A setIsPricingActive() 0 4 1
A setApprovalState() 0 4 1
A setRejectionReason() 0 4 1
1
<?php
2
3
4
namespace Audiens\DoubleclickClient\entity;
5
6
use GiacomoFurlan\ObjectTransmapperValidator\Annotation\Validation\Validate;
7
8
/**
9
 * Class UserListPricing
10
 */
11
class UserListPricing
12
{
13
    use TransmapHydratable;
14
15
    const COST_TYPE_CPC = 'CPC';
16
    const COST_TYPE_CPM = 'CPM';
17
18
    const SALE_TYPE_DIRECT = 'DIRECT';
19
    const SALE_TYPE_SALE_FOR_RESALE = 'SALE_FOR_RESALE';
20
21
    const APPROVAL_STATE_UNAPPROVED = 'UNAPPROVED';
22
    const APPROVAL_STATE_APPROVED   = 'APPROVED';
23
    const APPROVAL_STATE_REJECTED   = 'REJECTED';
24
25
    /**
26
     * @var  string Readonly
27
     * @Validate(type="string", mandatory=true)
28
     */
29
    protected $startDate;
30
31
    /**
32
     * @var string
33
     * @Validate(type="string", mandatory=true)
34
     */
35
    protected $endDate;
36
37
    /**
38
     * @var  string IS0-4217
39
     * @Validate(type="string", regex="#^[a-zA-Z]{3}$#", mandatory=true)
40
     */
41
    protected $currencyCodeString;
42
43
    /**
44
     * @var int
45
     * @see COST_TYPE_*
46
     * @Validate(type="int", mandatory=true)
47
     */
48
    protected $userListCost;
49
50
    /**
51
     * @var string Readonly
52
     * @Validate(type="string", mandatory=true)
53
     */
54
    protected $creationTime;
55
56
    /**
57
     * @var string
58
     * @Validate(type="string", mandatory=true)
59
     */
60
    protected $costType;
61
62
    /**
63
     * @var string
64
     * @see SALE_TYPE_*
65
     * @Validate(type="string", mandatory=true)
66
     */
67
    protected $saleType;
68
69
    /**
70
     * @var bool
71
     * @Validate(type="bool", mandatory=true)
72
     */
73
    protected $isPricingActive;
74
75
    /**
76
     * @var string
77
     * @see APPROVAL_STATE_*
78
     * @Validate(type="string", mandatory=true)
79
     */
80
    protected $approvalState;
81
82
    /**
83
     * @var string
84
     * @Validate(type="string", mandatory=false)
85
     */
86
    protected $rejectionReason;
87
88
    /**
89
     * @return string
90
     */
91
    public function getStartDate()
92
    {
93
        return $this->startDate;
94
    }
95
96
    /**
97
     * @return string
98
     */
99
    public function getEndDate()
100
    {
101
        return $this->endDate;
102
    }
103
104
    /**
105
     * @return string
106
     */
107
    public function getCurrencyCodeString()
108
    {
109
        return $this->currencyCodeString;
110
    }
111
112
    /**
113
     * @return int
114
     */
115
    public function getUserListCost()
116
    {
117
        return $this->userListCost;
118
    }
119
120
    /**
121
     * @return string
122
     */
123
    public function getCreationTime()
124
    {
125
        return $this->creationTime;
126
    }
127
128
    /**
129
     * @return string
130
     */
131
    public function getCostType()
132
    {
133
        return $this->costType;
134
    }
135
136
    /**
137
     * @return string
138
     */
139
    public function getSaleType()
140
    {
141
        return $this->saleType;
142
    }
143
144
    /**
145
     * @return bool
146
     */
147
    public function isPricingActive()
148
    {
149
        return $this->isPricingActive;
150
    }
151
152
    /**
153
     * @return string
154
     */
155
    public function getApprovalState()
156
    {
157
        return $this->approvalState;
158
    }
159
160
    /**
161
     * @return string
162
     */
163
    public function getRejectionReason()
164
    {
165
        return $this->rejectionReason;
166
    }
167
168
    /**
169
     * @param string $startDate
170
     */
171
    public function setStartDate(string $startDate)
172
    {
173
        $this->startDate = $startDate;
174
    }
175
176
    /**
177
     * @param string $endDate
178
     */
179
    public function setEndDate($endDate)
180
    {
181
        $this->endDate = $endDate;
182
    }
183
184
    /**
185
     * @param string $currencyCodeString
186
     */
187
    public function setCurrencyCodeString($currencyCodeString)
188
    {
189
        $this->currencyCodeString = $currencyCodeString;
190
    }
191
192
    /**
193
     * @param int $userListCost
194
     */
195
    public function setUserListCost($userListCost)
196
    {
197
        $this->userListCost = $userListCost;
198
    }
199
200
    /**
201
     * @param string $creationTime
202
     */
203
    public function setCreationTime($creationTime)
204
    {
205
        $this->creationTime = $creationTime;
206
    }
207
208
    /**
209
     * @param string $costType
210
     */
211
    public function setCostType($costType)
212
    {
213
        $this->costType = $costType;
214
    }
215
216
    /**
217
     * @param string $saleType
218
     */
219
    public function setSaleType($saleType)
220
    {
221
        $this->saleType = $saleType;
222
    }
223
224
    /**
225
     * @param bool $isPricingActive
226
     */
227
    public function setIsPricingActive($isPricingActive)
228
    {
229
        $this->isPricingActive = $isPricingActive;
230
    }
231
232
    /**
233
     * @param string $approvalState
234
     */
235
    public function setApprovalState($approvalState)
236
    {
237
        $this->approvalState = $approvalState;
238
    }
239
240
    /**
241
     * @param string $rejectionReason
242
     */
243
    public function setRejectionReason($rejectionReason)
244
    {
245
        $this->rejectionReason = $rejectionReason;
246
    }
247
}
248