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