Passed
Push — master ( 75577f...fa8cb2 )
by Julito
10:11
created

SettingsCurrent::getAccessUrlLocked()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
/* For licensing terms, see /license.txt */
3
4
namespace Chamilo\CoreBundle\Entity;
5
6
use Doctrine\ORM\Mapping as ORM;
7
8
/**
9
 * SettingsCurrent.
10
 *
11
 * @ORM\Table(
12
 *     name="settings_current",
13
 *     options={"row_format":"DYNAMIC"},
14
 *     uniqueConstraints={
15
 *     @ORM\UniqueConstraint(
16
 *         name="unique_setting",
17
 *         columns={"variable", "subkey", "access_url"})
18
 *     },
19
 *     indexes={@ORM\Index(name="access_url", columns={"access_url"})}
20
 * )
21
 * @ORM\Entity
22
 */
23
class SettingsCurrent
24
{
25
    /**
26
     * @var int
27
     *
28
     * @ORM\Column(name="id", type="integer")
29
     * @ORM\Id
30
     * @ORM\GeneratedValue
31
     */
32
    protected $id;
33
34
    /**
35
     * @var AccessUrl
36
     *
37
     * @ORM\ManyToOne(targetEntity="AccessUrl", inversedBy="settings", cascade={"persist"})
38
     * @ORM\JoinColumn(name="access_url", referencedColumnName="id")
39
     */
40
    protected $url;
41
42
    /**
43
     * @var string
44
     *
45
     * @ORM\Column(name="variable", type="string", length=190, nullable=true)
46
     */
47
    protected $variable;
48
49
    /**
50
     * @var string
51
     *
52
     * @ORM\Column(name="subkey", type="string", length=190, nullable=true)
53
     */
54
    protected $subkey;
55
56
    /**
57
     * @var string
58
     *
59
     * @ORM\Column(name="type", type="string", length=255, nullable=true)
60
     */
61
    protected $type;
62
63
    /**
64
     * @var string
65
     *
66
     * @ORM\Column(name="category", type="string", length=255, nullable=true)
67
     */
68
    protected $category;
69
70
    /**
71
     * @var string
72
     *
73
     * @ORM\Column(name="selected_value", type="string", length=255, nullable=true)
74
     */
75
    protected $selectedValue;
76
77
    /**
78
     * @var string
79
     *
80
     * @ORM\Column(name="title", type="string", length=255, nullable=false)
81
     */
82
    protected $title;
83
84
    /**
85
     * @var string
86
     *
87
     * @ORM\Column(name="comment", type="string", length=255, nullable=true)
88
     */
89
    protected $comment;
90
91
    /**
92
     * @var string
93
     *
94
     * @ORM\Column(name="scope", type="string", length=50, nullable=true)
95
     */
96
    protected $scope;
97
98
    /**
99
     * @var string
100
     *
101
     * @ORM\Column(name="subkeytext", type="string", length=255, nullable=true)
102
     */
103
    protected $subkeytext;
104
105
    /**
106
     * @var int
107
     *
108
     * @ORM\Column(name="access_url_changeable", type="integer", nullable=false)
109
     */
110
    protected $accessUrlChangeable;
111
112
    /**
113
     * @var int
114
     *
115
     * @ORM\Column(name="access_url_locked", type="integer", nullable=false, options={"default": 0 } )
116
     */
117
    protected $accessUrlLocked = 0;
118
119
    /**
120
     * Constructor.
121
     */
122
    public function __construct()
123
    {
124
        $this->accessUrlLocked = 0;
125
    }
126
127
    /**
128
     * Set variable.
129
     *
130
     * @param string $variable
131
     *
132
     * @return SettingsCurrent
133
     */
134
    public function setVariable($variable)
135
    {
136
        $this->variable = $variable;
137
138
        return $this;
139
    }
140
141
    /**
142
     * Get variable.
143
     *
144
     * @return string
145
     */
146
    public function getVariable()
147
    {
148
        return $this->variable;
149
    }
150
151
    /**
152
     * Set subkey.
153
     *
154
     * @param string $subkey
155
     *
156
     * @return SettingsCurrent
157
     */
158
    public function setSubkey($subkey)
159
    {
160
        $this->subkey = $subkey;
161
162
        return $this;
163
    }
164
165
    /**
166
     * Get subkey.
167
     *
168
     * @return string
169
     */
170
    public function getSubkey()
171
    {
172
        return $this->subkey;
173
    }
174
175
    /**
176
     * Set type.
177
     *
178
     * @param string $type
179
     *
180
     * @return SettingsCurrent
181
     */
182
    public function setType($type)
183
    {
184
        $this->type = $type;
185
186
        return $this;
187
    }
188
189
    /**
190
     * Get type.
191
     *
192
     * @return string
193
     */
194
    public function getType()
195
    {
196
        return $this->type;
197
    }
198
199
    /**
200
     * Set category.
201
     *
202
     * @param string $category
203
     *
204
     * @return SettingsCurrent
205
     */
206
    public function setCategory($category)
207
    {
208
        $this->category = $category;
209
210
        return $this;
211
    }
212
213
    /**
214
     * Get category.
215
     *
216
     * @return string
217
     */
218
    public function getCategory()
219
    {
220
        return $this->category;
221
    }
222
223
    /**
224
     * Set selectedValue.
225
     *
226
     * @param string $selectedValue
227
     *
228
     * @return SettingsCurrent
229
     */
230
    public function setSelectedValue($selectedValue)
231
    {
232
        $this->selectedValue = $selectedValue;
233
234
        return $this;
235
    }
236
237
    /**
238
     * Get selectedValue.
239
     *
240
     * @return string
241
     */
242
    public function getSelectedValue()
243
    {
244
        return $this->selectedValue;
245
    }
246
247
    /**
248
     * Set title.
249
     *
250
     * @param string $title
251
     *
252
     * @return SettingsCurrent
253
     */
254
    public function setTitle($title)
255
    {
256
        $this->title = $title;
257
258
        return $this;
259
    }
260
261
    /**
262
     * Get title.
263
     *
264
     * @return string
265
     */
266
    public function getTitle()
267
    {
268
        return $this->title;
269
    }
270
271
    /**
272
     * Set comment.
273
     *
274
     * @param string $comment
275
     *
276
     * @return SettingsCurrent
277
     */
278
    public function setComment($comment)
279
    {
280
        $this->comment = $comment;
281
282
        return $this;
283
    }
284
285
    /**
286
     * Get comment.
287
     *
288
     * @return string
289
     */
290
    public function getComment()
291
    {
292
        return $this->comment;
293
    }
294
295
    /**
296
     * Set scope.
297
     *
298
     * @param string $scope
299
     *
300
     * @return SettingsCurrent
301
     */
302
    public function setScope($scope)
303
    {
304
        $this->scope = $scope;
305
306
        return $this;
307
    }
308
309
    /**
310
     * Get scope.
311
     *
312
     * @return string
313
     */
314
    public function getScope()
315
    {
316
        return $this->scope;
317
    }
318
319
    /**
320
     * Set subkeytext.
321
     *
322
     * @param string $subkeytext
323
     *
324
     * @return SettingsCurrent
325
     */
326
    public function setSubkeytext($subkeytext)
327
    {
328
        $this->subkeytext = $subkeytext;
329
330
        return $this;
331
    }
332
333
    /**
334
     * Get subkeytext.
335
     *
336
     * @return string
337
     */
338
    public function getSubkeytext()
339
    {
340
        return $this->subkeytext;
341
    }
342
343
    /**
344
     * Set accessUrlChangeable.
345
     *
346
     * @param int $accessUrlChangeable
347
     *
348
     * @return SettingsCurrent
349
     */
350
    public function setAccessUrlChangeable($accessUrlChangeable)
351
    {
352
        $this->accessUrlChangeable = $accessUrlChangeable;
353
354
        return $this;
355
    }
356
357
    /**
358
     * Get accessUrlChangeable.
359
     *
360
     * @return int
361
     */
362
    public function getAccessUrlChangeable()
363
    {
364
        return $this->accessUrlChangeable;
365
    }
366
367
    /**
368
     * Set accessUrlLocked.
369
     *
370
     * @param int $accessUrlLocked
371
     *
372
     * @return SettingsCurrent
373
     */
374
    public function setAccessUrlLocked($accessUrlLocked)
375
    {
376
        $this->accessUrlLocked = intval($accessUrlLocked);
377
378
        return $this;
379
    }
380
381
    /**
382
     * Get accessUrlLocked.
383
     *
384
     * @return int
385
     */
386
    public function getAccessUrlLocked()
387
    {
388
        return $this->accessUrlLocked;
389
    }
390
391
    /**
392
     * Get id.
393
     *
394
     * @return int
395
     */
396
    public function getId()
397
    {
398
        return $this->id;
399
    }
400
401
    /**
402
     * @return AccessUrl
403
     */
404
    public function getUrl()
405
    {
406
        return $this->url;
407
    }
408
409
    /**
410
     * @param AccessUrl $url
411
     *
412
     * @return SettingsCurrent
413
     */
414
    public function setUrl($url)
415
    {
416
        $this->url = $url;
417
418
        return $this;
419
    }
420
}
421