Passed
Push — master ( 67fc75...5c9ce0 )
by Anthony
02:39
created

Module::setpackageName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace PiouPiou\RibsAdminBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
use Gedmo\Mapping\Annotation as Gedmo;
7
8
/**
9
 * Module
10
 *
11
 * @ORM\Table(name="module")
12
 * @ORM\Entity
13
 */
14
class Module
15
{
16
	/**
17
	 * @var integer
18
	 *
19
	 * @ORM\Column(name="id", type="integer", nullable=false)
20
	 * @ORM\Id
21
	 * @ORM\GeneratedValue(strategy="IDENTITY")
22
	 */
23
	private $id;
24
	
25
	/**
26
	 * @var string
27
	 *
28
	 * @ORM\Column(name="package_name", type="string", length=255, nullable=false)
29
	 */
30
	private $packageName;
31
	
32
	/**
33
	 * @var string
34
	 *
35
	 * @ORM\Column(name="title_tag", type="string", length=70, nullable=true)
36
	 */
37
	private $titleTag;
38
	
39
	/**
40
	 * @var string
41
	 *
42
	 * @ORM\Column(name="description_tag", type="string", length=160, nullable=true)
43
	 */
44
	private $descriptionTag;
45
	
46
	/**
47
	 * @var string
48
	 *
49
	 * @ORM\Column(name="title", type="string", length=255, nullable=false)
50
	 */
51
	private $title;
52
	
53
	/**
54
	 * @var string
55
	 *
56
	 * @ORM\Column(name="template", type="string", length=255, nullable=false)
57
	 */
58
	private $template;
59
	
60
	/**
61
	 * @var string
62
	 *
63
	 * @ORM\Column(name="url", type="string", length=255, nullable=false)
64
	 */
65
	private $url;
66
	
67
	/**
68
	 * @var string
69
	 *
70
	 * @ORM\Column(name="url_admin", type="string", length=255, nullable=false)
71
	 */
72
	private $urlAdmin;
73
	
74
	/**
75
	 * @var integer
76
	 *
77
	 * @ORM\Column(name="active", type="integer", nullable=false)
78
	 */
79
	private $active;
80
	
81
	/**
82
	 * @var integer
83
	 *
84
	 * @ORM\Column(name="order", type="integer", nullable=false)
85
	 */
86
	private $order;
87
	
88
	/**
89
	 * @var integer
90
	 *
91
	 * @ORM\Column(name="displayed", type="integer", nullable=false)
92
	 */
93
	private $displayed;
94
	
95
	/**
96
	 * @var \DateTime
97
	 *
98
	 * @Gedmo\Timestampable(on="create")
99
	 * @ORM\Column(name="creation_date", type="date", nullable=true)
100
	 */
101
	private $creationDate;
102
	
103
	/**
104
	 * @var \DateTime
105
	 *
106
	 * @Gedmo\Timestampable(on="update")
107
	 * @ORM\Column(name="update_date", type="date", nullable=true)
108
	 */
109
	private $updateDate;
110
	
111
	/**
112
	 * @return int
113
	 */
114
	public function getId(): int
115
	{
116
		return $this->id;
117
	}
118
	
119
	/**
120
	 * @param int $id
121
	 */
122
	public function setId(int $id)
123
	{
124
		$this->id = $id;
125
	}
126
	
127
	/**
128
	 * @return string
129
	 */
130
	public function getPackageName(): string
131
	{
132
		return $this->packageName;
133
	}
134
	
135
	/**
136
	 * @param string $package_namee
137
	 */
138
	public function setpackageName(string $package_namee)
139
	{
140
		$this->packageName = $package_namee;
141
	}
142
	
143
	/**
144
	 * @return string
145
	 */
146
	public function getTitleTag(): string
147
	{
148
		return $this->titleTag;
149
	}
150
	
151
	/**
152
	 * @param string $titleTag
153
	 */
154
	public function setTitleTag(string $titleTag)
155
	{
156
		$this->titleTag = $titleTag;
157
	}
158
	
159
	/**
160
	 * @return string
161
	 */
162
	public function getDescriptionTag(): string
163
	{
164
		return $this->descriptionTag;
165
	}
166
	
167
	/**
168
	 * @param string $descriptionTag
169
	 */
170
	public function setDescriptionTag(string $descriptionTag)
171
	{
172
		$this->descriptionTag = $descriptionTag;
173
	}
174
	
175
	/**
176
	 * @return string
177
	 */
178
	public function getTitle(): string
179
	{
180
		return $this->title;
181
	}
182
	
183
	/**
184
	 * @param string $title
185
	 */
186
	public function setTitle(string $title)
187
	{
188
		$this->title = $title;
189
	}
190
	
191
	/**
192
	 * @return string
193
	 */
194
	public function getTemplate(): string
195
	{
196
		return $this->template;
197
	}
198
	
199
	/**
200
	 * @param string $template
201
	 */
202
	public function setTemplate(string $template)
203
	{
204
		$this->template = $template;
205
	}
206
	
207
	/**
208
	 * @return string
209
	 */
210
	public function getUrl(): string
211
	{
212
		return $this->url;
213
	}
214
	
215
	/**
216
	 * @param string $url
217
	 */
218
	public function setUrl(string $url)
219
	{
220
		$this->url = $url;
221
	}
222
	
223
	/**
224
	 * @return string
225
	 */
226
	public function getUrlAdmin(): string {
227
		return $this->urlAdmin;
228
	}
229
	
230
	/**
231
	 * @param string $urlAdmin
232
	 */
233
	public function setUrlAdmin(string $urlAdmin) {
234
		$this->urlAdmin = $urlAdmin;
235
	}
236
	
237
	/**
238
	 * @return int
239
	 */
240
	public function getActive(): int
241
	{
242
		return $this->active;
243
	}
244
	
245
	/**
246
	 * @param int $active
247
	 */
248
	public function setActive(int $active)
249
	{
250
		$this->active = $active;
251
	}
252
	
253
	/**
254
	 * @return int
255
	 */
256
	public function getOrder(): int
257
	{
258
		return $this->order;
259
	}
260
	
261
	/**
262
	 * @param int $order
263
	 */
264
	public function setOrder(int $order)
265
	{
266
		$this->order = $order;
267
	}
268
	
269
	/**
270
	 * @return int
271
	 */
272
	public function getDisplayed(): int
273
	{
274
		return $this->displayed;
275
	}
276
	
277
	/**
278
	 * @param int $displayed
279
	 */
280
	public function setDisplayed(int $displayed)
281
	{
282
		$this->displayed = $displayed;
283
	}
284
	
285
	/**
286
	 * @return \DateTime
287
	 */
288
	public function getCreationDate(): \DateTime
289
	{
290
		return $this->creationDate;
291
	}
292
	
293
	/**
294
	 * @param \DateTime $creationDate
295
	 */
296
	public function setCreationDate(\DateTime $creationDate)
297
	{
298
		$this->creationDate = $creationDate;
299
	}
300
	
301
	/**
302
	 * @return \DateTime
303
	 */
304
	public function getUpdateDate(): \DateTime
305
	{
306
		return $this->updateDate;
307
	}
308
	
309
	/**
310
	 * @param \DateTime $updateDate
311
	 */
312
	public function setUpdateDate(\DateTime $updateDate)
313
	{
314
		$this->updateDate = $updateDate;
315
	}
316
}