@@ -12,8 +12,8 @@ discard block |
||
12 | 12 | */ |
13 | 13 | class Account implements UserInterface, \Serializable |
14 | 14 | { |
15 | - use GuidTrait; |
|
16 | - use CreatedUpdatedTrait; |
|
15 | + use GuidTrait; |
|
16 | + use CreatedUpdatedTrait; |
|
17 | 17 | |
18 | 18 | /** |
19 | 19 | * @ORM\Id |
@@ -47,16 +47,16 @@ discard block |
||
47 | 47 | */ |
48 | 48 | private $isActive; |
49 | 49 | |
50 | - /** |
|
51 | - * @ORM\Column(type="datetime", nullable=true) |
|
52 | - */ |
|
53 | - protected $last_connection; |
|
50 | + /** |
|
51 | + * @ORM\Column(type="datetime", nullable=true) |
|
52 | + */ |
|
53 | + protected $last_connection; |
|
54 | 54 | |
55 | - /** |
|
56 | - * @ORM\OneToMany(targetEntity="AccountToken", mappedBy="account") |
|
57 | - * @ORM\JoinColumn(name="id", referencedColumnName="account_id", nullable=false) |
|
58 | - */ |
|
59 | - protected $tokens; |
|
55 | + /** |
|
56 | + * @ORM\OneToMany(targetEntity="AccountToken", mappedBy="account") |
|
57 | + * @ORM\JoinColumn(name="id", referencedColumnName="account_id", nullable=false) |
|
58 | + */ |
|
59 | + protected $tokens; |
|
60 | 60 | |
61 | 61 | /** |
62 | 62 | * @var User |
@@ -187,43 +187,43 @@ discard block |
||
187 | 187 | $this->user = $user; |
188 | 188 | } |
189 | 189 | |
190 | - /** |
|
191 | - * @return mixed |
|
192 | - */ |
|
193 | - public function getLastConnection() |
|
194 | - { |
|
195 | - return $this->last_connection; |
|
196 | - } |
|
190 | + /** |
|
191 | + * @return mixed |
|
192 | + */ |
|
193 | + public function getLastConnection() |
|
194 | + { |
|
195 | + return $this->last_connection; |
|
196 | + } |
|
197 | 197 | |
198 | - /** |
|
199 | - * @param mixed $last_connection |
|
200 | - * @return Account |
|
201 | - */ |
|
202 | - public function setLastConnection($last_connection) |
|
203 | - { |
|
204 | - $this->last_connection = $last_connection; |
|
198 | + /** |
|
199 | + * @param mixed $last_connection |
|
200 | + * @return Account |
|
201 | + */ |
|
202 | + public function setLastConnection($last_connection) |
|
203 | + { |
|
204 | + $this->last_connection = $last_connection; |
|
205 | 205 | |
206 | - return $this; |
|
207 | - } |
|
206 | + return $this; |
|
207 | + } |
|
208 | 208 | |
209 | - /** |
|
210 | - * @return mixed |
|
211 | - */ |
|
212 | - public function getTokens() |
|
213 | - { |
|
214 | - return $this->tokens; |
|
215 | - } |
|
209 | + /** |
|
210 | + * @return mixed |
|
211 | + */ |
|
212 | + public function getTokens() |
|
213 | + { |
|
214 | + return $this->tokens; |
|
215 | + } |
|
216 | 216 | |
217 | - /** |
|
218 | - * @param mixed $tokens |
|
219 | - * @return Account |
|
220 | - */ |
|
221 | - public function setTokens($tokens) |
|
222 | - { |
|
223 | - $this->tokens = $tokens; |
|
217 | + /** |
|
218 | + * @param mixed $tokens |
|
219 | + * @return Account |
|
220 | + */ |
|
221 | + public function setTokens($tokens) |
|
222 | + { |
|
223 | + $this->tokens = $tokens; |
|
224 | 224 | |
225 | - return $this; |
|
226 | - } |
|
225 | + return $this; |
|
226 | + } |
|
227 | 227 | |
228 | 228 | /** |
229 | 229 | * Returns the roles granted to the user. |
@@ -14,297 +14,297 @@ |
||
14 | 14 | */ |
15 | 15 | class Module |
16 | 16 | { |
17 | - use GuidTrait; |
|
18 | - use CreatedUpdatedTrait; |
|
19 | - |
|
20 | - /** |
|
21 | - * @var integer |
|
22 | - * |
|
23 | - * @ORM\Column(name="id", type="integer", nullable=false, options={"unsigned"=true}) |
|
24 | - * @ORM\Id |
|
25 | - * @ORM\GeneratedValue(strategy="IDENTITY") |
|
26 | - */ |
|
27 | - private $id; |
|
28 | - |
|
29 | - /** |
|
30 | - * @var string |
|
31 | - * |
|
32 | - * @ORM\Column(name="package_name", type="string", length=255, nullable=false) |
|
33 | - */ |
|
34 | - private $packageName; |
|
35 | - |
|
36 | - /** |
|
37 | - * @var string |
|
38 | - * |
|
39 | - * @ORM\Column(name="title_tag", type="string", length=70, nullable=true) |
|
40 | - */ |
|
41 | - private $titleTag; |
|
42 | - |
|
43 | - /** |
|
44 | - * @var string |
|
45 | - * |
|
46 | - * @ORM\Column(name="description_tag", type="string", length=160, nullable=true) |
|
47 | - */ |
|
48 | - private $descriptionTag; |
|
49 | - |
|
50 | - /** |
|
51 | - * @var string |
|
52 | - * |
|
53 | - * @ORM\Column(name="title", type="string", length=255, nullable=false) |
|
54 | - */ |
|
55 | - private $title; |
|
56 | - |
|
57 | - /** |
|
58 | - * @var string |
|
59 | - * |
|
60 | - * @ORM\Column(name="template", type="string", length=255, nullable=true) |
|
61 | - */ |
|
62 | - private $template; |
|
63 | - |
|
64 | - /** |
|
65 | - * @var string |
|
66 | - * |
|
67 | - * @ORM\Column(name="url", type="string", length=255, nullable=true) |
|
68 | - */ |
|
69 | - private $url; |
|
70 | - |
|
71 | - /** |
|
72 | - * @var string |
|
73 | - * |
|
74 | - * @ORM\Column(name="url_admin", type="string", length=255, nullable=true) |
|
75 | - */ |
|
76 | - private $urlAdmin; |
|
77 | - |
|
78 | - /** |
|
79 | - * @var boolean |
|
80 | - * |
|
81 | - * @ORM\Column(name="active", type="boolean", nullable=false) |
|
82 | - */ |
|
83 | - private $active; |
|
84 | - |
|
85 | - /** |
|
86 | - * @var integer |
|
87 | - * |
|
88 | - * @ORM\Column(name="`order`", type="integer", nullable=true) |
|
89 | - */ |
|
90 | - private $order; |
|
91 | - |
|
92 | - /** |
|
93 | - * @var boolean |
|
94 | - * |
|
95 | - * @ORM\Column(name="displayed", type="boolean", nullable=false) |
|
96 | - */ |
|
97 | - private $displayed; |
|
98 | - |
|
99 | - /** |
|
100 | - * @var boolean |
|
101 | - * |
|
102 | - * @ORM\Column(name="dev_mode", type="boolean", nullable=false) |
|
103 | - */ |
|
104 | - private $devMode = false; |
|
105 | - |
|
106 | - /** |
|
107 | - * @return int |
|
108 | - */ |
|
109 | - public function getId(): int |
|
110 | - { |
|
111 | - return $this->id; |
|
112 | - } |
|
113 | - |
|
114 | - /** |
|
115 | - * @param int $id |
|
116 | - */ |
|
117 | - public function setId(int $id) |
|
118 | - { |
|
119 | - $this->id = $id; |
|
120 | - } |
|
121 | - |
|
122 | - /** |
|
123 | - * @return string |
|
124 | - */ |
|
125 | - public function getPackageName(): ?string |
|
126 | - { |
|
127 | - return $this->packageName; |
|
128 | - } |
|
129 | - |
|
130 | - /** |
|
131 | - * @param string $package_name |
|
132 | - */ |
|
133 | - public function setPackageName(string $package_name) |
|
134 | - { |
|
135 | - $this->packageName = $package_name; |
|
136 | - } |
|
137 | - |
|
138 | - /** |
|
139 | - * @return string |
|
140 | - */ |
|
141 | - public function getTitleTag(): ?string |
|
142 | - { |
|
143 | - return $this->titleTag; |
|
144 | - } |
|
145 | - |
|
146 | - /** |
|
147 | - * @param string $titleTag |
|
148 | - */ |
|
149 | - public function setTitleTag(string $titleTag) |
|
150 | - { |
|
151 | - $this->titleTag = $titleTag; |
|
152 | - } |
|
153 | - |
|
154 | - /** |
|
155 | - * @return string |
|
156 | - */ |
|
157 | - public function getDescriptionTag(): ?string |
|
158 | - { |
|
159 | - return $this->descriptionTag; |
|
160 | - } |
|
161 | - |
|
162 | - /** |
|
163 | - * @param string $descriptionTag |
|
164 | - */ |
|
165 | - public function setDescriptionTag(string $descriptionTag) |
|
166 | - { |
|
167 | - $this->descriptionTag = $descriptionTag; |
|
168 | - } |
|
169 | - |
|
170 | - /** |
|
171 | - * @return string |
|
172 | - */ |
|
173 | - public function getTitle(): ?string |
|
174 | - { |
|
175 | - return $this->title; |
|
176 | - } |
|
177 | - |
|
178 | - /** |
|
179 | - * @param string $title |
|
180 | - */ |
|
181 | - public function setTitle(string $title) |
|
182 | - { |
|
183 | - $this->title = $title; |
|
184 | - } |
|
185 | - |
|
186 | - /** |
|
187 | - * @return string |
|
188 | - */ |
|
189 | - public function getTemplate(): ?string |
|
190 | - { |
|
191 | - return $this->template; |
|
192 | - } |
|
193 | - |
|
194 | - /** |
|
195 | - * @param string $template |
|
196 | - */ |
|
197 | - public function setTemplate(string $template) |
|
198 | - { |
|
199 | - $this->template = $template; |
|
200 | - } |
|
201 | - |
|
202 | - /** |
|
203 | - * @return string |
|
204 | - */ |
|
205 | - public function getUrl(): ?string |
|
206 | - { |
|
207 | - return $this->url; |
|
208 | - } |
|
209 | - |
|
210 | - /** |
|
211 | - * @param string $url |
|
212 | - */ |
|
213 | - public function setUrl(string $url) |
|
214 | - { |
|
215 | - $this->url = $url; |
|
216 | - } |
|
217 | - |
|
218 | - /** |
|
219 | - * @return string |
|
220 | - */ |
|
221 | - public function getUrlAdmin(): ?string |
|
222 | - { |
|
223 | - return $this->urlAdmin; |
|
224 | - } |
|
225 | - |
|
226 | - /** |
|
227 | - * @param string $urlAdmin |
|
228 | - */ |
|
229 | - public function setUrlAdmin(string $urlAdmin) |
|
230 | - { |
|
231 | - $this->urlAdmin = $urlAdmin; |
|
232 | - } |
|
233 | - |
|
234 | - /** |
|
235 | - * @return boolean |
|
236 | - */ |
|
237 | - public function getActive(): ?bool |
|
238 | - { |
|
239 | - return $this->active; |
|
240 | - } |
|
241 | - |
|
242 | - /** |
|
243 | - * @param bool $active |
|
244 | - */ |
|
245 | - public function setActive(bool $active) |
|
246 | - { |
|
247 | - $this->active = $active; |
|
248 | - } |
|
249 | - |
|
250 | - /** |
|
251 | - * @return int |
|
252 | - */ |
|
253 | - public function getOrder(): ?int |
|
254 | - { |
|
255 | - return $this->order; |
|
256 | - } |
|
257 | - |
|
258 | - /** |
|
259 | - * @param int $order |
|
260 | - */ |
|
261 | - public function setOrder(int $order) |
|
262 | - { |
|
263 | - $this->order = $order; |
|
264 | - } |
|
265 | - |
|
266 | - /** |
|
267 | - * @return bool |
|
268 | - */ |
|
269 | - public function getDisplayed(): ?bool |
|
270 | - { |
|
271 | - return $this->displayed; |
|
272 | - } |
|
273 | - |
|
274 | - /** |
|
275 | - * @param bool $displayed |
|
276 | - */ |
|
277 | - public function setDisplayed(bool $displayed) |
|
278 | - { |
|
279 | - $this->displayed = $displayed; |
|
280 | - } |
|
281 | - |
|
282 | - /** |
|
283 | - * @return bool |
|
284 | - */ |
|
285 | - public function getDevMode(): bool |
|
286 | - { |
|
287 | - return $this->devMode; |
|
288 | - } |
|
289 | - |
|
290 | - /** |
|
291 | - * @param bool $devMode |
|
292 | - * @return Module |
|
293 | - */ |
|
294 | - public function setDevMode(bool $devMode): Module |
|
295 | - { |
|
296 | - $this->devMode = $devMode; |
|
297 | - |
|
298 | - return $this; |
|
299 | - } |
|
300 | - |
|
301 | - public function getFormattedActive() |
|
302 | - { |
|
303 | - return $this->getActive() ? "Oui" : "Non"; |
|
304 | - } |
|
305 | - |
|
306 | - public function getFormattedDisplayed() |
|
307 | - { |
|
308 | - return $this->getDisplayed() ? "Oui" : "Non"; |
|
309 | - } |
|
17 | + use GuidTrait; |
|
18 | + use CreatedUpdatedTrait; |
|
19 | + |
|
20 | + /** |
|
21 | + * @var integer |
|
22 | + * |
|
23 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"unsigned"=true}) |
|
24 | + * @ORM\Id |
|
25 | + * @ORM\GeneratedValue(strategy="IDENTITY") |
|
26 | + */ |
|
27 | + private $id; |
|
28 | + |
|
29 | + /** |
|
30 | + * @var string |
|
31 | + * |
|
32 | + * @ORM\Column(name="package_name", type="string", length=255, nullable=false) |
|
33 | + */ |
|
34 | + private $packageName; |
|
35 | + |
|
36 | + /** |
|
37 | + * @var string |
|
38 | + * |
|
39 | + * @ORM\Column(name="title_tag", type="string", length=70, nullable=true) |
|
40 | + */ |
|
41 | + private $titleTag; |
|
42 | + |
|
43 | + /** |
|
44 | + * @var string |
|
45 | + * |
|
46 | + * @ORM\Column(name="description_tag", type="string", length=160, nullable=true) |
|
47 | + */ |
|
48 | + private $descriptionTag; |
|
49 | + |
|
50 | + /** |
|
51 | + * @var string |
|
52 | + * |
|
53 | + * @ORM\Column(name="title", type="string", length=255, nullable=false) |
|
54 | + */ |
|
55 | + private $title; |
|
56 | + |
|
57 | + /** |
|
58 | + * @var string |
|
59 | + * |
|
60 | + * @ORM\Column(name="template", type="string", length=255, nullable=true) |
|
61 | + */ |
|
62 | + private $template; |
|
63 | + |
|
64 | + /** |
|
65 | + * @var string |
|
66 | + * |
|
67 | + * @ORM\Column(name="url", type="string", length=255, nullable=true) |
|
68 | + */ |
|
69 | + private $url; |
|
70 | + |
|
71 | + /** |
|
72 | + * @var string |
|
73 | + * |
|
74 | + * @ORM\Column(name="url_admin", type="string", length=255, nullable=true) |
|
75 | + */ |
|
76 | + private $urlAdmin; |
|
77 | + |
|
78 | + /** |
|
79 | + * @var boolean |
|
80 | + * |
|
81 | + * @ORM\Column(name="active", type="boolean", nullable=false) |
|
82 | + */ |
|
83 | + private $active; |
|
84 | + |
|
85 | + /** |
|
86 | + * @var integer |
|
87 | + * |
|
88 | + * @ORM\Column(name="`order`", type="integer", nullable=true) |
|
89 | + */ |
|
90 | + private $order; |
|
91 | + |
|
92 | + /** |
|
93 | + * @var boolean |
|
94 | + * |
|
95 | + * @ORM\Column(name="displayed", type="boolean", nullable=false) |
|
96 | + */ |
|
97 | + private $displayed; |
|
98 | + |
|
99 | + /** |
|
100 | + * @var boolean |
|
101 | + * |
|
102 | + * @ORM\Column(name="dev_mode", type="boolean", nullable=false) |
|
103 | + */ |
|
104 | + private $devMode = false; |
|
105 | + |
|
106 | + /** |
|
107 | + * @return int |
|
108 | + */ |
|
109 | + public function getId(): int |
|
110 | + { |
|
111 | + return $this->id; |
|
112 | + } |
|
113 | + |
|
114 | + /** |
|
115 | + * @param int $id |
|
116 | + */ |
|
117 | + public function setId(int $id) |
|
118 | + { |
|
119 | + $this->id = $id; |
|
120 | + } |
|
121 | + |
|
122 | + /** |
|
123 | + * @return string |
|
124 | + */ |
|
125 | + public function getPackageName(): ?string |
|
126 | + { |
|
127 | + return $this->packageName; |
|
128 | + } |
|
129 | + |
|
130 | + /** |
|
131 | + * @param string $package_name |
|
132 | + */ |
|
133 | + public function setPackageName(string $package_name) |
|
134 | + { |
|
135 | + $this->packageName = $package_name; |
|
136 | + } |
|
137 | + |
|
138 | + /** |
|
139 | + * @return string |
|
140 | + */ |
|
141 | + public function getTitleTag(): ?string |
|
142 | + { |
|
143 | + return $this->titleTag; |
|
144 | + } |
|
145 | + |
|
146 | + /** |
|
147 | + * @param string $titleTag |
|
148 | + */ |
|
149 | + public function setTitleTag(string $titleTag) |
|
150 | + { |
|
151 | + $this->titleTag = $titleTag; |
|
152 | + } |
|
153 | + |
|
154 | + /** |
|
155 | + * @return string |
|
156 | + */ |
|
157 | + public function getDescriptionTag(): ?string |
|
158 | + { |
|
159 | + return $this->descriptionTag; |
|
160 | + } |
|
161 | + |
|
162 | + /** |
|
163 | + * @param string $descriptionTag |
|
164 | + */ |
|
165 | + public function setDescriptionTag(string $descriptionTag) |
|
166 | + { |
|
167 | + $this->descriptionTag = $descriptionTag; |
|
168 | + } |
|
169 | + |
|
170 | + /** |
|
171 | + * @return string |
|
172 | + */ |
|
173 | + public function getTitle(): ?string |
|
174 | + { |
|
175 | + return $this->title; |
|
176 | + } |
|
177 | + |
|
178 | + /** |
|
179 | + * @param string $title |
|
180 | + */ |
|
181 | + public function setTitle(string $title) |
|
182 | + { |
|
183 | + $this->title = $title; |
|
184 | + } |
|
185 | + |
|
186 | + /** |
|
187 | + * @return string |
|
188 | + */ |
|
189 | + public function getTemplate(): ?string |
|
190 | + { |
|
191 | + return $this->template; |
|
192 | + } |
|
193 | + |
|
194 | + /** |
|
195 | + * @param string $template |
|
196 | + */ |
|
197 | + public function setTemplate(string $template) |
|
198 | + { |
|
199 | + $this->template = $template; |
|
200 | + } |
|
201 | + |
|
202 | + /** |
|
203 | + * @return string |
|
204 | + */ |
|
205 | + public function getUrl(): ?string |
|
206 | + { |
|
207 | + return $this->url; |
|
208 | + } |
|
209 | + |
|
210 | + /** |
|
211 | + * @param string $url |
|
212 | + */ |
|
213 | + public function setUrl(string $url) |
|
214 | + { |
|
215 | + $this->url = $url; |
|
216 | + } |
|
217 | + |
|
218 | + /** |
|
219 | + * @return string |
|
220 | + */ |
|
221 | + public function getUrlAdmin(): ?string |
|
222 | + { |
|
223 | + return $this->urlAdmin; |
|
224 | + } |
|
225 | + |
|
226 | + /** |
|
227 | + * @param string $urlAdmin |
|
228 | + */ |
|
229 | + public function setUrlAdmin(string $urlAdmin) |
|
230 | + { |
|
231 | + $this->urlAdmin = $urlAdmin; |
|
232 | + } |
|
233 | + |
|
234 | + /** |
|
235 | + * @return boolean |
|
236 | + */ |
|
237 | + public function getActive(): ?bool |
|
238 | + { |
|
239 | + return $this->active; |
|
240 | + } |
|
241 | + |
|
242 | + /** |
|
243 | + * @param bool $active |
|
244 | + */ |
|
245 | + public function setActive(bool $active) |
|
246 | + { |
|
247 | + $this->active = $active; |
|
248 | + } |
|
249 | + |
|
250 | + /** |
|
251 | + * @return int |
|
252 | + */ |
|
253 | + public function getOrder(): ?int |
|
254 | + { |
|
255 | + return $this->order; |
|
256 | + } |
|
257 | + |
|
258 | + /** |
|
259 | + * @param int $order |
|
260 | + */ |
|
261 | + public function setOrder(int $order) |
|
262 | + { |
|
263 | + $this->order = $order; |
|
264 | + } |
|
265 | + |
|
266 | + /** |
|
267 | + * @return bool |
|
268 | + */ |
|
269 | + public function getDisplayed(): ?bool |
|
270 | + { |
|
271 | + return $this->displayed; |
|
272 | + } |
|
273 | + |
|
274 | + /** |
|
275 | + * @param bool $displayed |
|
276 | + */ |
|
277 | + public function setDisplayed(bool $displayed) |
|
278 | + { |
|
279 | + $this->displayed = $displayed; |
|
280 | + } |
|
281 | + |
|
282 | + /** |
|
283 | + * @return bool |
|
284 | + */ |
|
285 | + public function getDevMode(): bool |
|
286 | + { |
|
287 | + return $this->devMode; |
|
288 | + } |
|
289 | + |
|
290 | + /** |
|
291 | + * @param bool $devMode |
|
292 | + * @return Module |
|
293 | + */ |
|
294 | + public function setDevMode(bool $devMode): Module |
|
295 | + { |
|
296 | + $this->devMode = $devMode; |
|
297 | + |
|
298 | + return $this; |
|
299 | + } |
|
300 | + |
|
301 | + public function getFormattedActive() |
|
302 | + { |
|
303 | + return $this->getActive() ? "Oui" : "Non"; |
|
304 | + } |
|
305 | + |
|
306 | + public function getFormattedDisplayed() |
|
307 | + { |
|
308 | + return $this->getDisplayed() ? "Oui" : "Non"; |
|
309 | + } |
|
310 | 310 | } |
@@ -14,45 +14,45 @@ discard block |
||
14 | 14 | */ |
15 | 15 | class Page |
16 | 16 | { |
17 | - use GuidTrait; |
|
18 | - use CreatedUpdatedTrait; |
|
17 | + use GuidTrait; |
|
18 | + use CreatedUpdatedTrait; |
|
19 | 19 | |
20 | - /** |
|
21 | - * @var integer |
|
22 | - * |
|
23 | - * @ORM\Column(name="id", type="integer", nullable=false, options={"unsigned"=true}) |
|
24 | - * @ORM\Id |
|
25 | - * @ORM\GeneratedValue(strategy="IDENTITY") |
|
26 | - */ |
|
27 | - private $id; |
|
20 | + /** |
|
21 | + * @var integer |
|
22 | + * |
|
23 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"unsigned"=true}) |
|
24 | + * @ORM\Id |
|
25 | + * @ORM\GeneratedValue(strategy="IDENTITY") |
|
26 | + */ |
|
27 | + private $id; |
|
28 | 28 | |
29 | - /** |
|
30 | - * @var string |
|
31 | - * |
|
32 | - * @ORM\Column(name="title_tag", type="string", length=70, nullable=true) |
|
33 | - */ |
|
34 | - private $titleTag; |
|
29 | + /** |
|
30 | + * @var string |
|
31 | + * |
|
32 | + * @ORM\Column(name="title_tag", type="string", length=70, nullable=true) |
|
33 | + */ |
|
34 | + private $titleTag; |
|
35 | 35 | |
36 | - /** |
|
37 | - * @var string |
|
38 | - * |
|
39 | - * @ORM\Column(name="description_tag", type="string", length=160, nullable=true) |
|
40 | - */ |
|
41 | - private $descriptionTag; |
|
36 | + /** |
|
37 | + * @var string |
|
38 | + * |
|
39 | + * @ORM\Column(name="description_tag", type="string", length=160, nullable=true) |
|
40 | + */ |
|
41 | + private $descriptionTag; |
|
42 | 42 | |
43 | - /** |
|
44 | - * @var string |
|
45 | - * |
|
46 | - * @ORM\Column(name="title", type="string", length=255, nullable=false) |
|
47 | - */ |
|
48 | - private $title; |
|
43 | + /** |
|
44 | + * @var string |
|
45 | + * |
|
46 | + * @ORM\Column(name="title", type="string", length=255, nullable=false) |
|
47 | + */ |
|
48 | + private $title; |
|
49 | 49 | |
50 | 50 | /** |
51 | 51 | * @var string |
52 | 52 | * |
53 | 53 | * @ORM\Column(name="template", type="string", length=255, nullable=false) |
54 | 54 | */ |
55 | - private $template; |
|
55 | + private $template; |
|
56 | 56 | |
57 | 57 | /** |
58 | 58 | * @var string |
@@ -61,107 +61,107 @@ discard block |
||
61 | 61 | */ |
62 | 62 | private $url; |
63 | 63 | |
64 | - /** |
|
65 | - * @var string |
|
66 | - * |
|
67 | - * @ORM\Column(name="content", type="text", nullable=true) |
|
68 | - */ |
|
69 | - private $content; |
|
64 | + /** |
|
65 | + * @var string |
|
66 | + * |
|
67 | + * @ORM\Column(name="content", type="text", nullable=true) |
|
68 | + */ |
|
69 | + private $content; |
|
70 | 70 | |
71 | - /** |
|
72 | - * @var integer |
|
73 | - * |
|
74 | - * @ORM\Column(name="active", type="integer", nullable=false) |
|
75 | - */ |
|
76 | - private $active; |
|
71 | + /** |
|
72 | + * @var integer |
|
73 | + * |
|
74 | + * @ORM\Column(name="active", type="integer", nullable=false) |
|
75 | + */ |
|
76 | + private $active; |
|
77 | 77 | |
78 | - /** |
|
79 | - * @var integer |
|
80 | - * |
|
81 | - * @ORM\Column(name="order", type="integer", nullable=false) |
|
82 | - */ |
|
83 | - private $order; |
|
78 | + /** |
|
79 | + * @var integer |
|
80 | + * |
|
81 | + * @ORM\Column(name="order", type="integer", nullable=false) |
|
82 | + */ |
|
83 | + private $order; |
|
84 | 84 | |
85 | - /** |
|
86 | - * @var integer |
|
87 | - * |
|
88 | - * @ORM\Column(name="displayed", type="integer", nullable=false) |
|
89 | - */ |
|
90 | - private $displayed; |
|
85 | + /** |
|
86 | + * @var integer |
|
87 | + * |
|
88 | + * @ORM\Column(name="displayed", type="integer", nullable=false) |
|
89 | + */ |
|
90 | + private $displayed; |
|
91 | 91 | |
92 | - /** |
|
93 | - * @var \Page |
|
94 | - * |
|
95 | - * @ORM\ManyToOne(targetEntity="Page") |
|
96 | - * @ORM\JoinColumns({ |
|
97 | - * @ORM\JoinColumn(name="parent", referencedColumnName="id") |
|
98 | - * }) |
|
99 | - */ |
|
100 | - private $parent; |
|
92 | + /** |
|
93 | + * @var \Page |
|
94 | + * |
|
95 | + * @ORM\ManyToOne(targetEntity="Page") |
|
96 | + * @ORM\JoinColumns({ |
|
97 | + * @ORM\JoinColumn(name="parent", referencedColumnName="id") |
|
98 | + * }) |
|
99 | + */ |
|
100 | + private $parent; |
|
101 | 101 | |
102 | - /** |
|
103 | - * @return int |
|
104 | - */ |
|
105 | - public function getId() |
|
106 | - { |
|
107 | - return $this->id; |
|
108 | - } |
|
102 | + /** |
|
103 | + * @return int |
|
104 | + */ |
|
105 | + public function getId() |
|
106 | + { |
|
107 | + return $this->id; |
|
108 | + } |
|
109 | 109 | |
110 | - /** |
|
111 | - * @param int $id |
|
112 | - */ |
|
113 | - public function setId($id) |
|
114 | - { |
|
115 | - $this->id = $id; |
|
116 | - } |
|
110 | + /** |
|
111 | + * @param int $id |
|
112 | + */ |
|
113 | + public function setId($id) |
|
114 | + { |
|
115 | + $this->id = $id; |
|
116 | + } |
|
117 | 117 | |
118 | - /** |
|
119 | - * @return string |
|
120 | - */ |
|
121 | - public function getTitleTag() |
|
122 | - { |
|
123 | - return $this->titleTag; |
|
124 | - } |
|
118 | + /** |
|
119 | + * @return string |
|
120 | + */ |
|
121 | + public function getTitleTag() |
|
122 | + { |
|
123 | + return $this->titleTag; |
|
124 | + } |
|
125 | 125 | |
126 | - /** |
|
127 | - * @param string $titleTag |
|
128 | - */ |
|
129 | - public function setTitleTag($titleTag) |
|
130 | - { |
|
131 | - $this->titleTag = $titleTag; |
|
132 | - } |
|
126 | + /** |
|
127 | + * @param string $titleTag |
|
128 | + */ |
|
129 | + public function setTitleTag($titleTag) |
|
130 | + { |
|
131 | + $this->titleTag = $titleTag; |
|
132 | + } |
|
133 | 133 | |
134 | - /** |
|
135 | - * @return string |
|
136 | - */ |
|
137 | - public function getDescriptionTag() |
|
138 | - { |
|
139 | - return $this->descriptionTag; |
|
140 | - } |
|
134 | + /** |
|
135 | + * @return string |
|
136 | + */ |
|
137 | + public function getDescriptionTag() |
|
138 | + { |
|
139 | + return $this->descriptionTag; |
|
140 | + } |
|
141 | 141 | |
142 | - /** |
|
143 | - * @param string $descriptionTag |
|
144 | - */ |
|
145 | - public function setDescriptionTag($descriptionTag) |
|
146 | - { |
|
147 | - $this->descriptionTag = $descriptionTag; |
|
148 | - } |
|
142 | + /** |
|
143 | + * @param string $descriptionTag |
|
144 | + */ |
|
145 | + public function setDescriptionTag($descriptionTag) |
|
146 | + { |
|
147 | + $this->descriptionTag = $descriptionTag; |
|
148 | + } |
|
149 | 149 | |
150 | - /** |
|
151 | - * @return string |
|
152 | - */ |
|
153 | - public function getTitle() |
|
154 | - { |
|
155 | - return $this->title; |
|
156 | - } |
|
150 | + /** |
|
151 | + * @return string |
|
152 | + */ |
|
153 | + public function getTitle() |
|
154 | + { |
|
155 | + return $this->title; |
|
156 | + } |
|
157 | 157 | |
158 | - /** |
|
159 | - * @param string $title |
|
160 | - */ |
|
161 | - public function setTitle($title) |
|
162 | - { |
|
163 | - $this->title = $title; |
|
164 | - } |
|
158 | + /** |
|
159 | + * @param string $title |
|
160 | + */ |
|
161 | + public function setTitle($title) |
|
162 | + { |
|
163 | + $this->title = $title; |
|
164 | + } |
|
165 | 165 | |
166 | 166 | /** |
167 | 167 | * @return string |
@@ -195,84 +195,84 @@ discard block |
||
195 | 195 | $this->url = $url; |
196 | 196 | } |
197 | 197 | |
198 | - /** |
|
199 | - * @return string |
|
200 | - */ |
|
201 | - public function getContent() |
|
202 | - { |
|
203 | - return $this->content; |
|
204 | - } |
|
198 | + /** |
|
199 | + * @return string |
|
200 | + */ |
|
201 | + public function getContent() |
|
202 | + { |
|
203 | + return $this->content; |
|
204 | + } |
|
205 | 205 | |
206 | - /** |
|
207 | - * @param string $content |
|
208 | - */ |
|
209 | - public function setContent($content) |
|
210 | - { |
|
211 | - $this->content = $content; |
|
212 | - } |
|
206 | + /** |
|
207 | + * @param string $content |
|
208 | + */ |
|
209 | + public function setContent($content) |
|
210 | + { |
|
211 | + $this->content = $content; |
|
212 | + } |
|
213 | 213 | |
214 | - /** |
|
215 | - * @return int |
|
216 | - */ |
|
217 | - public function getActive() |
|
218 | - { |
|
219 | - return $this->active; |
|
220 | - } |
|
214 | + /** |
|
215 | + * @return int |
|
216 | + */ |
|
217 | + public function getActive() |
|
218 | + { |
|
219 | + return $this->active; |
|
220 | + } |
|
221 | 221 | |
222 | - /** |
|
223 | - * @param int $active |
|
224 | - */ |
|
225 | - public function setActive($active) |
|
226 | - { |
|
227 | - $this->active = $active; |
|
228 | - } |
|
222 | + /** |
|
223 | + * @param int $active |
|
224 | + */ |
|
225 | + public function setActive($active) |
|
226 | + { |
|
227 | + $this->active = $active; |
|
228 | + } |
|
229 | 229 | |
230 | - /** |
|
231 | - * @return int |
|
232 | - */ |
|
233 | - public function getOrder() |
|
234 | - { |
|
235 | - return $this->order; |
|
236 | - } |
|
230 | + /** |
|
231 | + * @return int |
|
232 | + */ |
|
233 | + public function getOrder() |
|
234 | + { |
|
235 | + return $this->order; |
|
236 | + } |
|
237 | 237 | |
238 | - /** |
|
239 | - * @param int $order |
|
240 | - */ |
|
241 | - public function setOrder($order) |
|
242 | - { |
|
243 | - $this->order = $order; |
|
244 | - } |
|
238 | + /** |
|
239 | + * @param int $order |
|
240 | + */ |
|
241 | + public function setOrder($order) |
|
242 | + { |
|
243 | + $this->order = $order; |
|
244 | + } |
|
245 | 245 | |
246 | - /** |
|
247 | - * @return int |
|
248 | - */ |
|
249 | - public function getDisplayed() |
|
250 | - { |
|
251 | - return $this->displayed; |
|
252 | - } |
|
246 | + /** |
|
247 | + * @return int |
|
248 | + */ |
|
249 | + public function getDisplayed() |
|
250 | + { |
|
251 | + return $this->displayed; |
|
252 | + } |
|
253 | 253 | |
254 | - /** |
|
255 | - * @param int $displayed |
|
256 | - */ |
|
257 | - public function setDisplayed($displayed) |
|
258 | - { |
|
259 | - $this->displayed = $displayed; |
|
260 | - } |
|
254 | + /** |
|
255 | + * @param int $displayed |
|
256 | + */ |
|
257 | + public function setDisplayed($displayed) |
|
258 | + { |
|
259 | + $this->displayed = $displayed; |
|
260 | + } |
|
261 | 261 | |
262 | - /** |
|
263 | - * @return \Page |
|
264 | - */ |
|
265 | - public function getParent() |
|
266 | - { |
|
267 | - return $this->parent; |
|
268 | - } |
|
262 | + /** |
|
263 | + * @return \Page |
|
264 | + */ |
|
265 | + public function getParent() |
|
266 | + { |
|
267 | + return $this->parent; |
|
268 | + } |
|
269 | 269 | |
270 | - /** |
|
271 | - * @param \Page $parent |
|
272 | - */ |
|
273 | - public function setParent($parent) |
|
274 | - { |
|
275 | - $this->parent = $parent; |
|
276 | - } |
|
270 | + /** |
|
271 | + * @param \Page $parent |
|
272 | + */ |
|
273 | + public function setParent($parent) |
|
274 | + { |
|
275 | + $this->parent = $parent; |
|
276 | + } |
|
277 | 277 | } |
278 | 278 |
@@ -13,130 +13,130 @@ |
||
13 | 13 | */ |
14 | 14 | class UserLogs |
15 | 15 | { |
16 | - use GuidTrait; |
|
17 | - use CreatedUpdatedTrait; |
|
18 | - |
|
19 | - /** |
|
20 | - * @var integer |
|
21 | - * |
|
22 | - * @ORM\Column(name="id", type="integer", nullable=false) |
|
23 | - * @ORM\Id |
|
24 | - * @ORM\GeneratedValue(strategy="IDENTITY") |
|
25 | - */ |
|
26 | - private $id; |
|
27 | - |
|
28 | - /** |
|
29 | - * @ORM\ManyToOne(targetEntity="PiouPiou\RibsAdminBundle\Entity\User") |
|
30 | - * @ORM\JoinColumn(name="user_id", referencedColumnName="id", nullable=false) |
|
31 | - */ |
|
32 | - private $user; |
|
33 | - |
|
34 | - /** |
|
35 | - * @var string |
|
36 | - * |
|
37 | - * @ORM\Column(name="method", type="string", length=255, nullable=false) |
|
38 | - */ |
|
39 | - private $method; |
|
40 | - |
|
41 | - /** |
|
42 | - * @var string |
|
43 | - * |
|
44 | - * @ORM\Column(name="url", type="string", length=255, nullable=false) |
|
45 | - */ |
|
46 | - private $url; |
|
47 | - |
|
48 | - /** |
|
49 | - * @var string |
|
50 | - * |
|
51 | - * @ORM\Column(name="equest_parameters", type="json", nullable=true) |
|
52 | - */ |
|
53 | - private $request_parameters; |
|
54 | - |
|
55 | - /** |
|
56 | - * @return int |
|
57 | - */ |
|
58 | - public function getId() |
|
59 | - { |
|
60 | - return $this->id; |
|
61 | - } |
|
62 | - |
|
63 | - /** |
|
64 | - * @param int $id |
|
65 | - */ |
|
66 | - public function setId($id) |
|
67 | - { |
|
68 | - $this->id = $id; |
|
69 | - } |
|
70 | - |
|
71 | - /** |
|
72 | - * @return User |
|
73 | - */ |
|
74 | - public function getUser(): User |
|
75 | - { |
|
76 | - return $this->user; |
|
77 | - } |
|
78 | - |
|
79 | - /** |
|
80 | - * @param \User $user |
|
81 | - */ |
|
82 | - public function setUser($user) |
|
83 | - { |
|
84 | - $this->user = $user; |
|
85 | - } |
|
86 | - |
|
87 | - /** |
|
88 | - * @return string |
|
89 | - */ |
|
90 | - public function getMethod(): string |
|
91 | - { |
|
92 | - return $this->method; |
|
93 | - } |
|
94 | - |
|
95 | - /** |
|
96 | - * @param string $method |
|
97 | - * @return UserLogs |
|
98 | - */ |
|
99 | - public function setMethod(string $method): UserLogs |
|
100 | - { |
|
101 | - $this->method = $method; |
|
102 | - |
|
103 | - return $this; |
|
104 | - } |
|
105 | - |
|
106 | - /** |
|
107 | - * @return string |
|
108 | - */ |
|
109 | - public function getUrl(): string |
|
110 | - { |
|
111 | - return $this->url; |
|
112 | - } |
|
113 | - |
|
114 | - /** |
|
115 | - * @param string $url |
|
116 | - * @return UserLogs |
|
117 | - */ |
|
118 | - public function setUrl(string $url): UserLogs |
|
119 | - { |
|
120 | - $this->url = $url; |
|
121 | - |
|
122 | - return $this; |
|
123 | - } |
|
124 | - |
|
125 | - |
|
126 | - public function getRequestParameters() |
|
127 | - { |
|
128 | - return $this->request_parameters; |
|
129 | - } |
|
130 | - |
|
131 | - /** |
|
132 | - * @param $request_parameters |
|
133 | - * @return UserLogs |
|
134 | - */ |
|
135 | - public function setRequestParameters($request_parameters): UserLogs |
|
136 | - { |
|
137 | - $this->request_parameters = $request_parameters; |
|
138 | - |
|
139 | - return $this; |
|
140 | - } |
|
16 | + use GuidTrait; |
|
17 | + use CreatedUpdatedTrait; |
|
18 | + |
|
19 | + /** |
|
20 | + * @var integer |
|
21 | + * |
|
22 | + * @ORM\Column(name="id", type="integer", nullable=false) |
|
23 | + * @ORM\Id |
|
24 | + * @ORM\GeneratedValue(strategy="IDENTITY") |
|
25 | + */ |
|
26 | + private $id; |
|
27 | + |
|
28 | + /** |
|
29 | + * @ORM\ManyToOne(targetEntity="PiouPiou\RibsAdminBundle\Entity\User") |
|
30 | + * @ORM\JoinColumn(name="user_id", referencedColumnName="id", nullable=false) |
|
31 | + */ |
|
32 | + private $user; |
|
33 | + |
|
34 | + /** |
|
35 | + * @var string |
|
36 | + * |
|
37 | + * @ORM\Column(name="method", type="string", length=255, nullable=false) |
|
38 | + */ |
|
39 | + private $method; |
|
40 | + |
|
41 | + /** |
|
42 | + * @var string |
|
43 | + * |
|
44 | + * @ORM\Column(name="url", type="string", length=255, nullable=false) |
|
45 | + */ |
|
46 | + private $url; |
|
47 | + |
|
48 | + /** |
|
49 | + * @var string |
|
50 | + * |
|
51 | + * @ORM\Column(name="equest_parameters", type="json", nullable=true) |
|
52 | + */ |
|
53 | + private $request_parameters; |
|
54 | + |
|
55 | + /** |
|
56 | + * @return int |
|
57 | + */ |
|
58 | + public function getId() |
|
59 | + { |
|
60 | + return $this->id; |
|
61 | + } |
|
62 | + |
|
63 | + /** |
|
64 | + * @param int $id |
|
65 | + */ |
|
66 | + public function setId($id) |
|
67 | + { |
|
68 | + $this->id = $id; |
|
69 | + } |
|
70 | + |
|
71 | + /** |
|
72 | + * @return User |
|
73 | + */ |
|
74 | + public function getUser(): User |
|
75 | + { |
|
76 | + return $this->user; |
|
77 | + } |
|
78 | + |
|
79 | + /** |
|
80 | + * @param \User $user |
|
81 | + */ |
|
82 | + public function setUser($user) |
|
83 | + { |
|
84 | + $this->user = $user; |
|
85 | + } |
|
86 | + |
|
87 | + /** |
|
88 | + * @return string |
|
89 | + */ |
|
90 | + public function getMethod(): string |
|
91 | + { |
|
92 | + return $this->method; |
|
93 | + } |
|
94 | + |
|
95 | + /** |
|
96 | + * @param string $method |
|
97 | + * @return UserLogs |
|
98 | + */ |
|
99 | + public function setMethod(string $method): UserLogs |
|
100 | + { |
|
101 | + $this->method = $method; |
|
102 | + |
|
103 | + return $this; |
|
104 | + } |
|
105 | + |
|
106 | + /** |
|
107 | + * @return string |
|
108 | + */ |
|
109 | + public function getUrl(): string |
|
110 | + { |
|
111 | + return $this->url; |
|
112 | + } |
|
113 | + |
|
114 | + /** |
|
115 | + * @param string $url |
|
116 | + * @return UserLogs |
|
117 | + */ |
|
118 | + public function setUrl(string $url): UserLogs |
|
119 | + { |
|
120 | + $this->url = $url; |
|
121 | + |
|
122 | + return $this; |
|
123 | + } |
|
124 | + |
|
125 | + |
|
126 | + public function getRequestParameters() |
|
127 | + { |
|
128 | + return $this->request_parameters; |
|
129 | + } |
|
130 | + |
|
131 | + /** |
|
132 | + * @param $request_parameters |
|
133 | + * @return UserLogs |
|
134 | + */ |
|
135 | + public function setRequestParameters($request_parameters): UserLogs |
|
136 | + { |
|
137 | + $this->request_parameters = $request_parameters; |
|
138 | + |
|
139 | + return $this; |
|
140 | + } |
|
141 | 141 | } |
142 | 142 |
@@ -14,8 +14,8 @@ |
||
14 | 14 | */ |
15 | 15 | class Navigation |
16 | 16 | { |
17 | - use GuidTrait; |
|
18 | - use CreatedUpdatedTrait; |
|
17 | + use GuidTrait; |
|
18 | + use CreatedUpdatedTrait; |
|
19 | 19 | |
20 | 20 | /** |
21 | 21 | * @var integer |
@@ -6,26 +6,26 @@ |
||
6 | 6 | |
7 | 7 | trait GuidTrait |
8 | 8 | { |
9 | - /** |
|
10 | - * @var string |
|
11 | - * |
|
12 | - * @ORM\Column(name="guid", type="string", length=255, nullable=true) |
|
13 | - */ |
|
14 | - private $guid; |
|
9 | + /** |
|
10 | + * @var string |
|
11 | + * |
|
12 | + * @ORM\Column(name="guid", type="string", length=255, nullable=true) |
|
13 | + */ |
|
14 | + private $guid; |
|
15 | 15 | |
16 | - /** |
|
17 | - * @return string |
|
18 | - */ |
|
19 | - public function getGuid() |
|
20 | - { |
|
21 | - return $this->guid; |
|
22 | - } |
|
16 | + /** |
|
17 | + * @return string |
|
18 | + */ |
|
19 | + public function getGuid() |
|
20 | + { |
|
21 | + return $this->guid; |
|
22 | + } |
|
23 | 23 | |
24 | - /** |
|
25 | - * @param string $guid |
|
26 | - */ |
|
27 | - public function setGuid($guid) |
|
28 | - { |
|
29 | - $this->guid = $guid; |
|
30 | - } |
|
24 | + /** |
|
25 | + * @param string $guid |
|
26 | + */ |
|
27 | + public function setGuid($guid) |
|
28 | + { |
|
29 | + $this->guid = $guid; |
|
30 | + } |
|
31 | 31 | } |
@@ -16,8 +16,8 @@ |
||
16 | 16 | */ |
17 | 17 | class AccessRight |
18 | 18 | { |
19 | - use GuidTrait; |
|
20 | - use CreatedUpdatedTrait; |
|
19 | + use GuidTrait; |
|
20 | + use CreatedUpdatedTrait; |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * @var integer |
@@ -8,24 +8,24 @@ |
||
8 | 8 | |
9 | 9 | class UserLogsRepository extends EntityRepository |
10 | 10 | { |
11 | - /** |
|
12 | - * @param int $page |
|
13 | - * @param int $max_per_page |
|
14 | - * @return Paginator |
|
15 | - */ |
|
16 | - public function findAllPaginated(int $page, int $max_per_page): Paginator |
|
17 | - { |
|
18 | - $qb = $this->createQueryBuilder('l')->orderBy('l.created_at', 'DESC'); |
|
19 | - $query = $qb->getQuery(); |
|
11 | + /** |
|
12 | + * @param int $page |
|
13 | + * @param int $max_per_page |
|
14 | + * @return Paginator |
|
15 | + */ |
|
16 | + public function findAllPaginated(int $page, int $max_per_page): Paginator |
|
17 | + { |
|
18 | + $qb = $this->createQueryBuilder('l')->orderBy('l.created_at', 'DESC'); |
|
19 | + $query = $qb->getQuery(); |
|
20 | 20 | |
21 | - $first_result = ($page - 1) * $max_per_page; |
|
22 | - $query->setFirstResult($first_result)->setMaxResults($max_per_page); |
|
23 | - $paginator = new Paginator($query); |
|
21 | + $first_result = ($page - 1) * $max_per_page; |
|
22 | + $query->setFirstResult($first_result)->setMaxResults($max_per_page); |
|
23 | + $paginator = new Paginator($query); |
|
24 | 24 | |
25 | - if (($paginator->count() <= $first_result) && $page != 1) { |
|
26 | - throw new NotFoundHttpException('La page demandée n\'existe pas.'); |
|
27 | - } |
|
25 | + if (($paginator->count() <= $first_result) && $page != 1) { |
|
26 | + throw new NotFoundHttpException('La page demandée n\'existe pas.'); |
|
27 | + } |
|
28 | 28 | |
29 | - return $paginator; |
|
30 | - } |
|
29 | + return $paginator; |
|
30 | + } |
|
31 | 31 | } |
@@ -14,17 +14,17 @@ discard block |
||
14 | 14 | */ |
15 | 15 | class User |
16 | 16 | { |
17 | - use GuidTrait; |
|
18 | - use CreatedUpdatedTrait; |
|
17 | + use GuidTrait; |
|
18 | + use CreatedUpdatedTrait; |
|
19 | 19 | |
20 | - /** |
|
21 | - * @var integer |
|
22 | - * |
|
23 | - * @ORM\Column(name="id", type="integer", nullable=false, options={"unsigned"=true}) |
|
24 | - * @ORM\Id |
|
25 | - * @ORM\GeneratedValue(strategy="IDENTITY") |
|
26 | - */ |
|
27 | - private $id; |
|
20 | + /** |
|
21 | + * @var integer |
|
22 | + * |
|
23 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"unsigned"=true}) |
|
24 | + * @ORM\Id |
|
25 | + * @ORM\GeneratedValue(strategy="IDENTITY") |
|
26 | + */ |
|
27 | + private $id; |
|
28 | 28 | |
29 | 29 | /** |
30 | 30 | * @var AccessRight |
@@ -32,63 +32,63 @@ discard block |
||
32 | 32 | * @ORM\ManyToOne(targetEntity="PiouPiou\RibsAdminBundle\Entity\AccessRight", inversedBy="users") |
33 | 33 | * @ORM\JoinColumn(name="id_access_right", referencedColumnName="id", nullable=true) |
34 | 34 | */ |
35 | - private $accessRightList; |
|
35 | + private $accessRightList; |
|
36 | 36 | |
37 | 37 | /** |
38 | 38 | * @var boolean |
39 | 39 | * |
40 | 40 | * @ORM\Column(name="admin", type="boolean", nullable=true, options={"default": false}) |
41 | 41 | */ |
42 | - private $admin; |
|
42 | + private $admin; |
|
43 | 43 | |
44 | - /** |
|
45 | - * @var string |
|
46 | - * |
|
47 | - * @ORM\Column(name="firstname", type="string", length=255, nullable=false) |
|
48 | - */ |
|
49 | - private $firstname; |
|
44 | + /** |
|
45 | + * @var string |
|
46 | + * |
|
47 | + * @ORM\Column(name="firstname", type="string", length=255, nullable=false) |
|
48 | + */ |
|
49 | + private $firstname; |
|
50 | 50 | |
51 | - /** |
|
52 | - * @var string |
|
53 | - * |
|
54 | - * @ORM\Column(name="lastname", type="string", length=255, nullable=false) |
|
55 | - */ |
|
56 | - private $lastname; |
|
51 | + /** |
|
52 | + * @var string |
|
53 | + * |
|
54 | + * @ORM\Column(name="lastname", type="string", length=255, nullable=false) |
|
55 | + */ |
|
56 | + private $lastname; |
|
57 | 57 | |
58 | - /** |
|
59 | - * @var string |
|
60 | - * |
|
61 | - * @ORM\Column(name="adress", type="string", length=255, nullable=true) |
|
62 | - */ |
|
63 | - private $adress; |
|
58 | + /** |
|
59 | + * @var string |
|
60 | + * |
|
61 | + * @ORM\Column(name="adress", type="string", length=255, nullable=true) |
|
62 | + */ |
|
63 | + private $adress; |
|
64 | 64 | |
65 | - /** |
|
66 | - * @var string |
|
67 | - * |
|
68 | - * @ORM\Column(name="postal_code", type="string", length=100, nullable=true) |
|
69 | - */ |
|
70 | - private $postalCode; |
|
65 | + /** |
|
66 | + * @var string |
|
67 | + * |
|
68 | + * @ORM\Column(name="postal_code", type="string", length=100, nullable=true) |
|
69 | + */ |
|
70 | + private $postalCode; |
|
71 | 71 | |
72 | - /** |
|
73 | - * @var string |
|
74 | - * |
|
75 | - * @ORM\Column(name="country", type="string", length=100, nullable=true) |
|
76 | - */ |
|
77 | - private $country; |
|
72 | + /** |
|
73 | + * @var string |
|
74 | + * |
|
75 | + * @ORM\Column(name="country", type="string", length=100, nullable=true) |
|
76 | + */ |
|
77 | + private $country; |
|
78 | 78 | |
79 | - /** |
|
80 | - * @var string |
|
81 | - * |
|
82 | - * @ORM\Column(name="state", type="string", length=255, nullable=true) |
|
83 | - */ |
|
84 | - private $state; |
|
79 | + /** |
|
80 | + * @var string |
|
81 | + * |
|
82 | + * @ORM\Column(name="state", type="string", length=255, nullable=true) |
|
83 | + */ |
|
84 | + private $state; |
|
85 | 85 | |
86 | - /** |
|
87 | - * @var string |
|
88 | - * |
|
89 | - * @ORM\Column(name="access_rights", type="text", nullable=true) |
|
90 | - */ |
|
91 | - private $accessRights; |
|
86 | + /** |
|
87 | + * @var string |
|
88 | + * |
|
89 | + * @ORM\Column(name="access_rights", type="text", nullable=true) |
|
90 | + */ |
|
91 | + private $accessRights; |
|
92 | 92 | |
93 | 93 | /** |
94 | 94 | * @var boolean |
@@ -97,21 +97,21 @@ discard block |
||
97 | 97 | */ |
98 | 98 | private $archived = false; |
99 | 99 | |
100 | - /** |
|
101 | - * @return int |
|
102 | - */ |
|
103 | - public function getId() |
|
104 | - { |
|
105 | - return $this->id; |
|
106 | - } |
|
100 | + /** |
|
101 | + * @return int |
|
102 | + */ |
|
103 | + public function getId() |
|
104 | + { |
|
105 | + return $this->id; |
|
106 | + } |
|
107 | 107 | |
108 | - /** |
|
109 | - * @param int $id |
|
110 | - */ |
|
111 | - public function setId($id) |
|
112 | - { |
|
113 | - $this->id = $id; |
|
114 | - } |
|
108 | + /** |
|
109 | + * @param int $id |
|
110 | + */ |
|
111 | + public function setId($id) |
|
112 | + { |
|
113 | + $this->id = $id; |
|
114 | + } |
|
115 | 115 | |
116 | 116 | /** |
117 | 117 | * @return AccessRight |
@@ -145,117 +145,117 @@ discard block |
||
145 | 145 | $this->admin = $admin; |
146 | 146 | } |
147 | 147 | |
148 | - /** |
|
149 | - * @return string |
|
150 | - */ |
|
151 | - public function getFirstname() |
|
152 | - { |
|
153 | - return $this->firstname; |
|
154 | - } |
|
148 | + /** |
|
149 | + * @return string |
|
150 | + */ |
|
151 | + public function getFirstname() |
|
152 | + { |
|
153 | + return $this->firstname; |
|
154 | + } |
|
155 | 155 | |
156 | - /** |
|
157 | - * @param string $firstname |
|
158 | - */ |
|
159 | - public function setFirstname($firstname) |
|
160 | - { |
|
161 | - $this->firstname = $firstname; |
|
162 | - } |
|
156 | + /** |
|
157 | + * @param string $firstname |
|
158 | + */ |
|
159 | + public function setFirstname($firstname) |
|
160 | + { |
|
161 | + $this->firstname = $firstname; |
|
162 | + } |
|
163 | 163 | |
164 | - /** |
|
165 | - * @return string |
|
166 | - */ |
|
167 | - public function getLastname() |
|
168 | - { |
|
169 | - return $this->lastname; |
|
170 | - } |
|
164 | + /** |
|
165 | + * @return string |
|
166 | + */ |
|
167 | + public function getLastname() |
|
168 | + { |
|
169 | + return $this->lastname; |
|
170 | + } |
|
171 | 171 | |
172 | - /** |
|
173 | - * @param string $lastname |
|
174 | - */ |
|
175 | - public function setLastname($lastname) |
|
176 | - { |
|
177 | - $this->lastname = $lastname; |
|
178 | - } |
|
172 | + /** |
|
173 | + * @param string $lastname |
|
174 | + */ |
|
175 | + public function setLastname($lastname) |
|
176 | + { |
|
177 | + $this->lastname = $lastname; |
|
178 | + } |
|
179 | 179 | |
180 | - /** |
|
181 | - * @return string |
|
182 | - */ |
|
183 | - public function getAdress() |
|
184 | - { |
|
185 | - return $this->adress; |
|
186 | - } |
|
180 | + /** |
|
181 | + * @return string |
|
182 | + */ |
|
183 | + public function getAdress() |
|
184 | + { |
|
185 | + return $this->adress; |
|
186 | + } |
|
187 | 187 | |
188 | - /** |
|
189 | - * @param string $adress |
|
190 | - */ |
|
191 | - public function setAdress($adress) |
|
192 | - { |
|
193 | - $this->adress = $adress; |
|
194 | - } |
|
188 | + /** |
|
189 | + * @param string $adress |
|
190 | + */ |
|
191 | + public function setAdress($adress) |
|
192 | + { |
|
193 | + $this->adress = $adress; |
|
194 | + } |
|
195 | 195 | |
196 | - /** |
|
197 | - * @return string |
|
198 | - */ |
|
199 | - public function getPostalCode() |
|
200 | - { |
|
201 | - return $this->postalCode; |
|
202 | - } |
|
196 | + /** |
|
197 | + * @return string |
|
198 | + */ |
|
199 | + public function getPostalCode() |
|
200 | + { |
|
201 | + return $this->postalCode; |
|
202 | + } |
|
203 | 203 | |
204 | - /** |
|
205 | - * @param string $postalCode |
|
206 | - */ |
|
207 | - public function setPostalCode($postalCode) |
|
208 | - { |
|
209 | - $this->postalCode = $postalCode; |
|
210 | - } |
|
204 | + /** |
|
205 | + * @param string $postalCode |
|
206 | + */ |
|
207 | + public function setPostalCode($postalCode) |
|
208 | + { |
|
209 | + $this->postalCode = $postalCode; |
|
210 | + } |
|
211 | 211 | |
212 | - /** |
|
213 | - * @return string |
|
214 | - */ |
|
215 | - public function getCountry() |
|
216 | - { |
|
217 | - return $this->country; |
|
218 | - } |
|
212 | + /** |
|
213 | + * @return string |
|
214 | + */ |
|
215 | + public function getCountry() |
|
216 | + { |
|
217 | + return $this->country; |
|
218 | + } |
|
219 | 219 | |
220 | - /** |
|
221 | - * @param string $country |
|
222 | - */ |
|
223 | - public function setCountry($country) |
|
224 | - { |
|
225 | - $this->country = $country; |
|
226 | - } |
|
220 | + /** |
|
221 | + * @param string $country |
|
222 | + */ |
|
223 | + public function setCountry($country) |
|
224 | + { |
|
225 | + $this->country = $country; |
|
226 | + } |
|
227 | 227 | |
228 | - /** |
|
229 | - * @return string |
|
230 | - */ |
|
231 | - public function getState() |
|
232 | - { |
|
233 | - return $this->state; |
|
234 | - } |
|
228 | + /** |
|
229 | + * @return string |
|
230 | + */ |
|
231 | + public function getState() |
|
232 | + { |
|
233 | + return $this->state; |
|
234 | + } |
|
235 | 235 | |
236 | - /** |
|
237 | - * @param string $state |
|
238 | - */ |
|
239 | - public function setState($state) |
|
240 | - { |
|
241 | - $this->state = $state; |
|
242 | - } |
|
236 | + /** |
|
237 | + * @param string $state |
|
238 | + */ |
|
239 | + public function setState($state) |
|
240 | + { |
|
241 | + $this->state = $state; |
|
242 | + } |
|
243 | 243 | |
244 | - /** |
|
245 | - * @return string |
|
246 | - */ |
|
247 | - public function getAccessRights() |
|
248 | - { |
|
249 | - return $this->accessRights; |
|
250 | - } |
|
244 | + /** |
|
245 | + * @return string |
|
246 | + */ |
|
247 | + public function getAccessRights() |
|
248 | + { |
|
249 | + return $this->accessRights; |
|
250 | + } |
|
251 | 251 | |
252 | - /** |
|
253 | - * @param string $accessRights |
|
254 | - */ |
|
255 | - public function setAccessRights($accessRights) |
|
256 | - { |
|
257 | - $this->accessRights = $accessRights; |
|
258 | - } |
|
252 | + /** |
|
253 | + * @param string $accessRights |
|
254 | + */ |
|
255 | + public function setAccessRights($accessRights) |
|
256 | + { |
|
257 | + $this->accessRights = $accessRights; |
|
258 | + } |
|
259 | 259 | |
260 | 260 | /** |
261 | 261 | * @return boolean |
@@ -274,8 +274,8 @@ discard block |
||
274 | 274 | } |
275 | 275 | |
276 | 276 | public function __toString() |
277 | - { |
|
278 | - return $this->getFirstname() . " " . $this->getLastname(); |
|
279 | - } |
|
277 | + { |
|
278 | + return $this->getFirstname() . " " . $this->getLastname(); |
|
279 | + } |
|
280 | 280 | } |
281 | 281 |