Passed
Push — master ( 59378c...401bc9 )
by Anthony
02:32
created

User   A

Complexity

Total Complexity 24

Size/Duplication

Total Lines 278
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 278
rs 10
wmc 24

24 Methods

Rating   Name   Duplication   Size   Complexity  
A setAccessRights() 0 3 1
A setGuid() 0 3 1
A getLastname() 0 3 1
A getState() 0 3 1
A getArchived() 0 3 1
A setUpdateDate() 0 3 1
A getPostalCode() 0 3 1
A getAccessRights() 0 3 1
A setPostalCode() 0 3 1
A setState() 0 3 1
A setLastname() 0 3 1
A getUpdateDate() 0 3 1
A setId() 0 3 1
A setFirstname() 0 3 1
A getFirstname() 0 3 1
A setCountry() 0 3 1
A setCreationDate() 0 3 1
A getCreationDate() 0 3 1
A getCountry() 0 3 1
A setAdress() 0 3 1
A getGuid() 0 3 1
A setArchived() 0 3 1
A getAdress() 0 3 1
A getId() 0 3 1
1
<?php
2
3
namespace Ribs\RibsAdminBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * User
9
 *
10
 * @ORM\Table(name="user")
11
 * @ORM\Entity
12
 */
13
class User
14
{
15
    /**
16
     * @var integer
17
     *
18
     * @ORM\Column(name="id", type="integer", nullable=false)
19
     * @ORM\Id
20
     * @ORM\GeneratedValue(strategy="IDENTITY")
21
     */
22
    private $id;
23
24
    /**
25
     * @var string
26
     *
27
     * @ORM\Column(name="guid", type="string", length=255, nullable=false)
28
     */
29
    private $guid;
30
31
    /**
32
     * @var string
33
     *
34
     * @ORM\Column(name="firstname", type="string", length=255, nullable=false)
35
     */
36
    private $firstname;
37
38
    /**
39
     * @var string
40
     *
41
     * @ORM\Column(name="lastname", type="string", length=255, nullable=false)
42
     */
43
    private $lastname;
44
45
    /**
46
     * @var string
47
     *
48
     * @ORM\Column(name="adress", type="string", length=255, nullable=true)
49
     */
50
    private $adress;
51
52
    /**
53
     * @var string
54
     *
55
     * @ORM\Column(name="postal_code", type="string", length=100, nullable=true)
56
     */
57
    private $postalCode;
58
59
    /**
60
     * @var string
61
     *
62
     * @ORM\Column(name="country", type="string", length=100, nullable=true)
63
     */
64
    private $country;
65
66
    /**
67
     * @var string
68
     *
69
     * @ORM\Column(name="state", type="string", length=255, nullable=true)
70
     */
71
    private $state;
72
73
    /**
74
     * @var string
75
     *
76
     * @ORM\Column(name="access_rights", type="text", nullable=true)
77
     */
78
    private $accessRights;
79
	
80
	/**
81
	 * @var string
82
	 *
83
	 * @ORM\Column(name="archived", type="boolean", nullable=false, options={"default": false})
84
	 */
85
	private $archived;
86
87
    /**
88
     * @var \DateTime
89
     *
90
     * @ORM\Column(name="creation_date", type="date", nullable=true)
91
     */
92
    private $creationDate;
93
94
    /**
95
     * @var \DateTime
96
     *
97
     * @ORM\Column(name="update_date", type="date", nullable=true)
98
     */
99
    private $updateDate;
100
101
    /**
102
     * @return int
103
     */
104
    public function getId()
105
    {
106
        return $this->id;
107
    }
108
109
    /**
110
     * @param int $id
111
     */
112
    public function setId($id)
113
    {
114
        $this->id = $id;
115
    }
116
117
    /**
118
     * @return string
119
     */
120
    public function getGuid()
121
    {
122
        return $this->guid;
123
    }
124
125
    /**
126
     * @param string $guid
127
     */
128
    public function setGuid($guid)
129
    {
130
        $this->guid = $guid;
131
    }
132
133
    /**
134
     * @return string
135
     */
136
    public function getFirstname()
137
    {
138
        return $this->firstname;
139
    }
140
141
    /**
142
     * @param string $firstname
143
     */
144
    public function setFirstname($firstname)
145
    {
146
        $this->firstname = $firstname;
147
    }
148
149
    /**
150
     * @return string
151
     */
152
    public function getLastname()
153
    {
154
        return $this->lastname;
155
    }
156
157
    /**
158
     * @param string $lastname
159
     */
160
    public function setLastname($lastname)
161
    {
162
        $this->lastname = $lastname;
163
    }
164
165
    /**
166
     * @return string
167
     */
168
    public function getAdress()
169
    {
170
        return $this->adress;
171
    }
172
173
    /**
174
     * @param string $adress
175
     */
176
    public function setAdress($adress)
177
    {
178
        $this->adress = $adress;
179
    }
180
181
    /**
182
     * @return string
183
     */
184
    public function getPostalCode()
185
    {
186
        return $this->postalCode;
187
    }
188
189
    /**
190
     * @param string $postalCode
191
     */
192
    public function setPostalCode($postalCode)
193
    {
194
        $this->postalCode = $postalCode;
195
    }
196
197
    /**
198
     * @return string
199
     */
200
    public function getCountry()
201
    {
202
        return $this->country;
203
    }
204
205
    /**
206
     * @param string $country
207
     */
208
    public function setCountry($country)
209
    {
210
        $this->country = $country;
211
    }
212
213
    /**
214
     * @return string
215
     */
216
    public function getState()
217
    {
218
        return $this->state;
219
    }
220
221
    /**
222
     * @param string $state
223
     */
224
    public function setState($state)
225
    {
226
        $this->state = $state;
227
    }
228
229
    /**
230
     * @return string
231
     */
232
    public function getAccessRights()
233
    {
234
        return $this->accessRights;
235
    }
236
237
    /**
238
     * @param string $accessRights
239
     */
240
    public function setAccessRights($accessRights)
241
    {
242
        $this->accessRights = $accessRights;
243
    }
244
245
    /**
246
     * @return \DateTime
247
     */
248
    public function getCreationDate()
249
    {
250
        return $this->creationDate;
251
    }
252
253
    /**
254
     * @param \DateTime $creationDate
255
     */
256
    public function setCreationDate($creationDate)
257
    {
258
        $this->creationDate = $creationDate;
259
    }
260
	
261
	/**
262
	 * @return string
263
	 */
264
	public function getArchived(): string
265
	{
266
		return $this->archived;
267
	}
268
	
269
	/**
270
	 * @param string $archived
271
	 */
272
	public function setArchived(string $archived)
273
	{
274
		$this->archived = $archived;
275
	}
276
277
    /**
278
     * @return \DateTime
279
     */
280
    public function getUpdateDate()
281
    {
282
        return $this->updateDate;
283
    }
284
285
    /**
286
     * @param \DateTime $updateDate
287
     */
288
    public function setUpdateDate($updateDate)
289
    {
290
        $this->updateDate = $updateDate;
291
    }
292
293
294
}
295
296