Passed
Push — devel-3.0 ( febc79...e96d2c )
by Rubén
03:16
created

ConfigData::setLdapUserattr()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * sysPass
4
 *
5
 * @author    nuxsmin
6
 * @link      https://syspass.org
7
 * @copyright 2012-2018, Rubén Domínguez nuxsmin@$syspass.org
8
 *
9
 * This file is part of sysPass.
10
 *
11
 * sysPass is free software: you can redistribute it and/or modify
12
 * it under the terms of the GNU General Public License as published by
13
 * the Free Software Foundation, either version 3 of the License, or
14
 * (at your option) any later version.
15
 *
16
 * sysPass is distributed in the hope that it will be useful,
17
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
 * GNU General Public License for more details.
20
 *
21
 * You should have received a copy of the GNU General Public License
22
 *  along with sysPass.  If not, see <http://www.gnu.org/licenses/>.
23
 */
24
25
namespace SP\Config;
26
27
use JsonSerializable;
28
29
/**
30
 * Class configData
31
 *
32
 * @package SP\Config
33
 */
34
final class ConfigData implements JsonSerializable
35
{
36
    /**
37
     * @var string
38
     */
39
    private $upgradeKey;
40
    /**
41
     * @var bool
42
     */
43
    private $dokuwikiEnabled = false;
44
    /**
45
     * @var string
46
     */
47
    private $dokuwikiUrl;
48
    /**
49
     * @var string
50
     */
51
    private $dokuwikiUrlBase;
52
    /**
53
     * @var string
54
     */
55
    private $dokuwikiUser;
56
    /**
57
     * @var string
58
     */
59
    private $dokuwikiPass;
60
    /**
61
     * @var string
62
     */
63
    private $dokuwikiNamespace;
64
    /**
65
     * @var int
66
     */
67
    private $ldapDefaultGroup;
68
    /**
69
     * @var int
70
     */
71
    private $ldapDefaultProfile;
72
    /**
73
     * @var bool
74
     */
75
    private $proxyEnabled = false;
76
    /**
77
     * @var string
78
     */
79
    private $proxyServer;
80
    /**
81
     * @var int
82
     */
83
    private $proxyPort = 8080;
84
    /**
85
     * @var string
86
     */
87
    private $proxyUser;
88
    /**
89
     * @var string
90
     */
91
    private $proxyPass;
92
    /**
93
     * @var int
94
     */
95
    private $publinksMaxViews = 3;
96
    /**
97
     * @var int
98
     */
99
    private $publinksMaxTime = 600;
100
    /**
101
     * @var bool
102
     */
103
    private $publinksEnabled = false;
104
    /**
105
     * @var int
106
     */
107
    private $accountCount = 12;
108
    /**
109
     * @var bool
110
     */
111
    private $accountLink = true;
112
    /**
113
     * @var bool
114
     */
115
    private $checkUpdates = false;
116
    /**
117
     * @var bool
118
     */
119
    private $checknotices = false;
120
    /**
121
     * @var string
122
     */
123
    private $configHash;
124
    /**
125
     * @var string
126
     */
127
    private $dbHost;
128
    /**
129
     * @var string
130
     */
131
    private $dbSocket;
132
    /**
133
     * @var string
134
     */
135
    private $dbName;
136
    /**
137
     * @var string
138
     */
139
    private $dbPass;
140
    /**
141
     * @var string
142
     */
143
    private $dbUser;
144
    /**
145
     * @var int
146
     */
147
    private $dbPort = 3306;
148
    /**
149
     * @var bool
150
     */
151
    private $debug = false;
152
    /**
153
     * @var bool
154
     */
155
    private $demoEnabled = false;
156
    /**
157
     * @var array
158
     */
159
    private $filesAllowedExts = ['PDF', 'JPG', 'GIF', 'PNG', 'ODT', 'ODS', 'DOC', 'DOCX', 'XLS', 'XSL', 'VSD', 'TXT', 'CSV', 'BAK'];
160
    /**
161
     * @var int
162
     */
163
    private $filesAllowedSize = 1024;
164
    /**
165
     * @var bool
166
     */
167
    private $filesEnabled = true;
168
    /**
169
     * @var bool
170
     */
171
    private $globalSearch = true;
172
    /**
173
     * @var bool
174
     */
175
    private $installed = false;
176
    /**
177
     * @var string
178
     */
179
    private $ldapBase;
180
    /**
181
     * @var string
182
     */
183
    private $ldapBindUser;
184
    /**
185
     * @var string
186
     */
187
    private $ldapBindPass;
188
    /**
189
     * @var string
190
     */
191
    private $ldapProxyUser;
192
    /**
193
     * @var bool
194
     */
195
    private $ldapEnabled = false;
196
    /**
197
     * @var bool
198
     */
199
    private $ldapAds = false;
200
    /**
201
     * @var string
202
     */
203
    private $ldapGroup;
204
    /**
205
     * @var string
206
     */
207
    private $ldapServer;
208
    /**
209
     * @var bool
210
     */
211
    private $logEnabled = true;
212
    /**
213
     * @var array
214
     */
215
    private $logEvents = [];
216
    /**
217
     * @var bool
218
     */
219
    private $mailAuthenabled = false;
220
    /**
221
     * @var bool
222
     */
223
    private $mailEnabled = false;
224
    /**
225
     * @var string
226
     */
227
    private $mailFrom;
228
    /**
229
     * @var string
230
     */
231
    private $mailPass;
232
    /**
233
     * @var int
234
     */
235
    private $mailPort = 25;
236
    /**
237
     * @var bool
238
     */
239
    private $mailRequestsEnabled = false;
240
    /**
241
     * @var string
242
     */
243
    private $mailSecurity;
244
    /**
245
     * @var string
246
     */
247
    private $mailServer;
248
    /**
249
     * @var string
250
     */
251
    private $mailUser;
252
    /**
253
     * @var array
254
     */
255
    private $mailRecipients = [];
256
    /**
257
     * @var array
258
     */
259
    private $mailEvents = [];
260
    /**
261
     * @var bool
262
     */
263
    private $maintenance = false;
264
    /**
265
     * @var string
266
     */
267
    private $passwordSalt;
268
    /**
269
     * @var bool
270
     */
271
    private $resultsAsCards = false;
272
    /**
273
     * @var int
274
     */
275
    private $sessionTimeout = 300;
276
    /**
277
     * @var string
278
     */
279
    private $siteLang;
280
    /**
281
     * @var string
282
     */
283
    private $siteTheme = 'material-blue';
284
    /**
285
     * @var string
286
     */
287
    private $configVersion;
288
    /**
289
     * @var string
290
     */
291
    private $databaseVersion;
292
    /**
293
     * @var bool
294
     */
295
    private $wikiEnabled = false;
296
    /**
297
     * @var array
298
     */
299
    private $wikiFilter = [];
300
    /**
301
     * @var string
302
     */
303
    private $wikiPageurl;
304
    /**
305
     * @var string
306
     */
307
    private $wikiSearchurl;
308
    /**
309
     * @var int
310
     */
311
    private $configDate = 0;
312
    /**
313
     * @var bool
314
     */
315
    private $publinksImageEnabled = false;
316
    /**
317
     * @var string
318
     */
319
    private $backup_hash;
320
    /**
321
     * @var string
322
     */
323
    private $export_hash;
324
    /**
325
     * @var bool
326
     */
327
    private $httpsEnabled = false;
328
    /**
329
     * @var bool
330
     */
331
    private $syslogEnabled = false;
332
    /**
333
     * @var bool
334
     */
335
    private $syslogRemoteEnabled = false;
336
    /**
337
     * @var string
338
     */
339
    private $syslogServer;
340
    /**
341
     * @var int
342
     */
343
    private $syslogPort = 514;
344
    /**
345
     * @var bool
346
     */
347
    private $accountPassToImage = false;
348
    /**
349
     * @var string
350
     */
351
    private $configSaver;
352
    /**
353
     * @var bool
354
     */
355
    private $encryptSession = false;
356
    /**
357
     * @var bool
358
     */
359
    private $accountFullGroupAccess = false;
360
    /**
361
     * @var bool
362
     */
363
    private $authBasicEnabled = true;
364
    /**
365
     * @var bool
366
     */
367
    private $authBasicAutoLoginEnabled = true;
368
    /**
369
     * @var string
370
     */
371
    private $authBasicDomain;
372
    /**
373
     * @var int
374
     */
375
    private $ssoDefaultGroup;
376
    /**
377
     * @var int
378
     */
379
    private $ssoDefaultProfile;
380
    /**
381
     * @var bool
382
     */
383
    private $accountExpireEnabled = false;
384
    /**
385
     * @var int
386
     */
387
    private $accountExpireTime = 10368000;
388
    /**
389
     * @var bool
390
     */
391
    private $ldapTlsEnabled = false;
392
393
    /**
394
     * @return array
395
     */
396
    public function getLogEvents()
397
    {
398
        return (array)$this->logEvents;
399
    }
400
401
    /**
402
     * @param array $logEvents
403
     */
404
    public function setLogEvents(array $logEvents)
405
    {
406
        $this->logEvents = $logEvents;
407
    }
408
409
    /**
410
     * @return boolean
411
     */
412
    public function isDokuwikiEnabled()
413
    {
414
        return $this->dokuwikiEnabled;
415
    }
416
417
    /**
418
     * @param boolean $dokuwikiEnabled
419
     *
420
     * @return $this
421
     */
422
    public function setDokuwikiEnabled($dokuwikiEnabled)
423
    {
424
        $this->dokuwikiEnabled = (bool)$dokuwikiEnabled;
425
426
        return $this;
427
    }
428
429
    /**
430
     * @return string
431
     */
432
    public function getDokuwikiUrl()
433
    {
434
        return $this->dokuwikiUrl;
435
    }
436
437
    /**
438
     * @param string $dokuwikiUrl
439
     *
440
     * @return $this
441
     */
442
    public function setDokuwikiUrl($dokuwikiUrl)
443
    {
444
        $this->dokuwikiUrl = $dokuwikiUrl;
445
446
        return $this;
447
    }
448
449
    /**
450
     * @return string
451
     */
452
    public function getDokuwikiUrlBase()
453
    {
454
        return $this->dokuwikiUrlBase;
455
    }
456
457
    /**
458
     * @param string $dokuwikiUrlBase
459
     *
460
     * @return $this
461
     */
462
    public function setDokuwikiUrlBase($dokuwikiUrlBase)
463
    {
464
        $this->dokuwikiUrlBase = $dokuwikiUrlBase;
465
466
        return $this;
467
    }
468
469
    /**
470
     * @return string
471
     */
472
    public function getDokuwikiUser()
473
    {
474
        return $this->dokuwikiUser;
475
    }
476
477
    /**
478
     * @param string $dokuwikiUser
479
     *
480
     * @return $this
481
     */
482
    public function setDokuwikiUser($dokuwikiUser)
483
    {
484
        $this->dokuwikiUser = $dokuwikiUser;
485
486
        return $this;
487
    }
488
489
    /**
490
     * @return string
491
     */
492
    public function getDokuwikiPass()
493
    {
494
        return $this->dokuwikiPass;
495
    }
496
497
    /**
498
     * @param string $dokuwikiPass
499
     *
500
     * @return $this
501
     */
502
    public function setDokuwikiPass($dokuwikiPass)
503
    {
504
        $this->dokuwikiPass = $dokuwikiPass;
505
506
        return $this;
507
    }
508
509
    /**
510
     * @return string
511
     */
512
    public function getDokuwikiNamespace()
513
    {
514
        return $this->dokuwikiNamespace;
515
    }
516
517
    /**
518
     * @param string $dokuwikiNamespace
519
     *
520
     * @return $this
521
     */
522
    public function setDokuwikiNamespace($dokuwikiNamespace)
523
    {
524
        $this->dokuwikiNamespace = $dokuwikiNamespace;
525
526
        return $this;
527
    }
528
529
    /**
530
     * @return int
531
     */
532
    public function getLdapDefaultGroup()
533
    {
534
        return (int)$this->ldapDefaultGroup;
535
    }
536
537
    /**
538
     * @param int $ldapDefaultGroup
539
     *
540
     * @return $this
541
     */
542
    public function setLdapDefaultGroup($ldapDefaultGroup)
543
    {
544
        $this->ldapDefaultGroup = (int)$ldapDefaultGroup;
545
546
        return $this;
547
    }
548
549
    /**
550
     * @return int
551
     */
552
    public function getLdapDefaultProfile()
553
    {
554
        return (int)$this->ldapDefaultProfile;
555
    }
556
557
    /**
558
     * @param int $ldapDefaultProfile
559
     *
560
     * @return $this
561
     */
562
    public function setLdapDefaultProfile($ldapDefaultProfile)
563
    {
564
        $this->ldapDefaultProfile = (int)$ldapDefaultProfile;
565
566
        return $this;
567
    }
568
569
    /**
570
     * @return boolean
571
     */
572
    public function isProxyEnabled()
573
    {
574
        return $this->proxyEnabled;
575
    }
576
577
    /**
578
     * @param boolean $proxyEnabled
579
     *
580
     * @return $this
581
     */
582
    public function setProxyEnabled($proxyEnabled)
583
    {
584
        $this->proxyEnabled = (bool)$proxyEnabled;
585
586
        return $this;
587
    }
588
589
    /**
590
     * @return string
591
     */
592
    public function getProxyServer()
593
    {
594
        return $this->proxyServer;
595
    }
596
597
    /**
598
     * @param string $proxyServer
599
     *
600
     * @return $this
601
     */
602
    public function setProxyServer($proxyServer)
603
    {
604
        $this->proxyServer = $proxyServer;
605
606
        return $this;
607
    }
608
609
    /**
610
     * @return int
611
     */
612
    public function getProxyPort()
613
    {
614
        return $this->proxyPort;
615
    }
616
617
    /**
618
     * @param int $proxyPort
619
     *
620
     * @return $this
621
     */
622
    public function setProxyPort($proxyPort)
623
    {
624
        $this->proxyPort = (int)$proxyPort;
625
626
        return $this;
627
    }
628
629
    /**
630
     * @return string
631
     */
632
    public function getProxyUser()
633
    {
634
        return $this->proxyUser;
635
    }
636
637
    /**
638
     * @param string $proxyUser
639
     *
640
     * @return $this
641
     */
642
    public function setProxyUser($proxyUser)
643
    {
644
        $this->proxyUser = $proxyUser;
645
646
        return $this;
647
    }
648
649
    /**
650
     * @return string
651
     */
652
    public function getProxyPass()
653
    {
654
        return $this->proxyPass;
655
    }
656
657
    /**
658
     * @param string $proxyPass
659
     *
660
     * @return $this
661
     */
662
    public function setProxyPass($proxyPass)
663
    {
664
        $this->proxyPass = $proxyPass;
665
666
        return $this;
667
    }
668
669
    /**
670
     * @return int
671
     */
672
    public function getPublinksMaxViews()
673
    {
674
        return $this->publinksMaxViews;
675
    }
676
677
678
    /**
679
     * @param int $publinksMaxViews
680
     *
681
     * @return $this
682
     */
683
    public function setPublinksMaxViews($publinksMaxViews)
684
    {
685
        $this->publinksMaxViews = (int)$publinksMaxViews;
686
687
        return $this;
688
    }
689
690
    /**
691
     * @return int
692
     */
693
    public function getPublinksMaxTime()
694
    {
695
        return $this->publinksMaxTime;
696
    }
697
698
    /**
699
     * @param int $publinksMaxTime
700
     *
701
     * @return $this
702
     */
703
    public function setPublinksMaxTime($publinksMaxTime)
704
    {
705
        $this->publinksMaxTime = (int)$publinksMaxTime;
706
707
        return $this;
708
    }
709
710
    /**
711
     * @return boolean
712
     */
713
    public function isSyslogEnabled()
714
    {
715
        return $this->syslogEnabled;
716
    }
717
718
    /**
719
     * @param boolean $syslogEnabled
720
     *
721
     * @return $this
722
     */
723
    public function setSyslogEnabled($syslogEnabled)
724
    {
725
        $this->syslogEnabled = (bool)$syslogEnabled;
726
727
        return $this;
728
    }
729
730
    /**
731
     * @return boolean
732
     */
733
    public function isSyslogRemoteEnabled()
734
    {
735
        return $this->syslogRemoteEnabled;
736
    }
737
738
    /**
739
     * @param boolean $syslogRemoteEnabled
740
     *
741
     * @return $this
742
     */
743
    public function setSyslogRemoteEnabled($syslogRemoteEnabled)
744
    {
745
        $this->syslogRemoteEnabled = (bool)$syslogRemoteEnabled;
746
747
        return $this;
748
    }
749
750
    /**
751
     * @return string
752
     */
753
    public function getSyslogServer()
754
    {
755
        return $this->syslogServer;
756
    }
757
758
    /**
759
     * @param string $syslogServer
760
     *
761
     * @return $this
762
     */
763
    public function setSyslogServer($syslogServer)
764
    {
765
        $this->syslogServer = $syslogServer;
766
767
        return $this;
768
    }
769
770
    /**
771
     * @return int
772
     */
773
    public function getSyslogPort()
774
    {
775
        return $this->syslogPort;
776
    }
777
778
    /**
779
     * @param int $syslogPort
780
     *
781
     * @return $this
782
     */
783
    public function setSyslogPort($syslogPort)
784
    {
785
        $this->syslogPort = (int)$syslogPort;
786
787
        return $this;
788
    }
789
790
    /**
791
     * @return string
792
     */
793
    public function getBackupHash()
794
    {
795
        return $this->backup_hash;
796
    }
797
798
    /**
799
     * @param string $backup_hash
800
     *
801
     * @return $this
802
     */
803
    public function setBackupHash($backup_hash)
804
    {
805
        $this->backup_hash = $backup_hash;
806
807
        return $this;
808
    }
809
810
    /**
811
     * @return string
812
     */
813
    public function getExportHash()
814
    {
815
        return $this->export_hash;
816
    }
817
818
    /**
819
     * @param string $export_hash
820
     *
821
     * @return $this
822
     */
823
    public function setExportHash($export_hash)
824
    {
825
        $this->export_hash = $export_hash;
826
827
        return $this;
828
    }
829
830
    /**
831
     * @return string
832
     */
833
    public function getLdapBindUser()
834
    {
835
        return $this->ldapBindUser;
836
    }
837
838
    /**
839
     * @param string $ldapBindUser
840
     *
841
     * @return $this
842
     */
843
    public function setLdapBindUser($ldapBindUser)
844
    {
845
        $this->ldapBindUser = $ldapBindUser;
846
847
        return $this;
848
    }
849
850
    /**
851
     * @return string
852
     */
853
    public function getLdapProxyUser()
854
    {
855
        return $this->ldapProxyUser;
856
    }
857
858
    /**
859
     * @param string $ldapProxyUser
860
     *
861
     * @return $this
862
     */
863
    public function setLdapProxyUser($ldapProxyUser)
864
    {
865
        $this->ldapProxyUser = $ldapProxyUser;
866
867
        return $this;
868
    }
869
870
    /**
871
     * @return int
872
     */
873
    public function getAccountCount()
874
    {
875
        return $this->accountCount;
876
    }
877
878
    /**
879
     * @param int $accountCount
880
     *
881
     * @return $this
882
     */
883
    public function setAccountCount($accountCount)
884
    {
885
        $this->accountCount = (int)$accountCount;
886
887
        return $this;
888
    }
889
890
    /**
891
     * @return boolean
892
     */
893
    public function isAccountLink()
894
    {
895
        return $this->accountLink;
896
    }
897
898
    /**
899
     * @param boolean $accountLink
900
     *
901
     * @return $this
902
     */
903
    public function setAccountLink($accountLink)
904
    {
905
        $this->accountLink = (bool)$accountLink;
906
907
        return $this;
908
    }
909
910
    /**
911
     * @return boolean
912
     */
913
    public function isCheckUpdates()
914
    {
915
        return $this->checkUpdates;
916
    }
917
918
    /**
919
     * @param boolean $checkUpdates
920
     *
921
     * @return $this
922
     */
923
    public function setCheckUpdates($checkUpdates)
924
    {
925
        $this->checkUpdates = (bool)$checkUpdates;
926
927
        return $this;
928
    }
929
930
    /**
931
     * @return string
932
     */
933
    public function getConfigHash()
934
    {
935
        return $this->configHash;
936
    }
937
938
    /**
939
     * Generates a hash from current config options
940
     */
941
    public function setConfigHash()
942
    {
943
        $this->configHash = sha1(serialize($this));
944
945
        return $this;
946
    }
947
948
    /**
949
     * @return string
950
     */
951
    public function getDbHost()
952
    {
953
        return $this->dbHost;
954
    }
955
956
    /**
957
     * @param string $dbHost
958
     *
959
     * @return $this
960
     */
961
    public function setDbHost($dbHost)
962
    {
963
        $this->dbHost = $dbHost;
964
965
        return $this;
966
    }
967
968
    /**
969
     * @return string
970
     */
971
    public function getDbName()
972
    {
973
        return $this->dbName;
974
    }
975
976
    /**
977
     * @param string $dbName
978
     *
979
     * @return $this
980
     */
981
    public function setDbName($dbName)
982
    {
983
        $this->dbName = $dbName;
984
985
        return $this;
986
    }
987
988
    /**
989
     * @return string
990
     */
991
    public function getDbPass()
992
    {
993
        return $this->dbPass;
994
    }
995
996
    /**
997
     * @param string $dbPass
998
     *
999
     * @return $this
1000
     */
1001
    public function setDbPass($dbPass)
1002
    {
1003
        $this->dbPass = $dbPass;
1004
1005
        return $this;
1006
    }
1007
1008
    /**
1009
     * @return string
1010
     */
1011
    public function getDbUser()
1012
    {
1013
        return $this->dbUser;
1014
    }
1015
1016
    /**
1017
     * @param string $dbUser
1018
     *
1019
     * @return $this
1020
     */
1021
    public function setDbUser($dbUser)
1022
    {
1023
        $this->dbUser = $dbUser;
1024
1025
        return $this;
1026
    }
1027
1028
    /**
1029
     * @return boolean
1030
     */
1031
    public function isDebug()
1032
    {
1033
        return $this->debug;
1034
    }
1035
1036
    /**
1037
     * @param boolean $debug
1038
     *
1039
     * @return $this
1040
     */
1041
    public function setDebug($debug)
1042
    {
1043
        $this->debug = (bool)$debug;
1044
1045
        return $this;
1046
    }
1047
1048
    /**
1049
     * @return boolean
1050
     */
1051
    public function isDemoEnabled()
1052
    {
1053
        return $this->demoEnabled;
1054
    }
1055
1056
    /**
1057
     * @param boolean $demoEnabled
1058
     *
1059
     * @return $this
1060
     */
1061
    public function setDemoEnabled($demoEnabled)
1062
    {
1063
        $this->demoEnabled = (bool)$demoEnabled;
1064
1065
        return $this;
1066
    }
1067
1068
    /**
1069
     * @return array
1070
     */
1071
    public function getFilesAllowedExts()
1072
    {
1073
        return (array)$this->filesAllowedExts;
1074
    }
1075
1076
    /**
1077
     * @param array $filesAllowedExts
1078
     *
1079
     * @return $this
1080
     */
1081
    public function setFilesAllowedExts(array $filesAllowedExts = [])
1082
    {
1083
        $this->filesAllowedExts = $filesAllowedExts;
1084
1085
        return $this;
1086
    }
1087
1088
    /**
1089
     * @return int
1090
     */
1091
    public function getFilesAllowedSize()
1092
    {
1093
        return $this->filesAllowedSize;
1094
    }
1095
1096
    /**
1097
     * @param int $filesAllowedSize
1098
     *
1099
     * @return $this
1100
     */
1101
    public function setFilesAllowedSize($filesAllowedSize)
1102
    {
1103
        $this->filesAllowedSize = (int)$filesAllowedSize;
1104
1105
        return $this;
1106
    }
1107
1108
    /**
1109
     * @return boolean
1110
     */
1111
    public function isFilesEnabled()
1112
    {
1113
        return $this->filesEnabled;
1114
    }
1115
1116
    /**
1117
     * @param boolean $filesEnabled
1118
     *
1119
     * @return $this
1120
     */
1121
    public function setFilesEnabled($filesEnabled)
1122
    {
1123
        $this->filesEnabled = (bool)$filesEnabled;
1124
1125
        return $this;
1126
    }
1127
1128
    /**
1129
     * @return boolean
1130
     */
1131
    public function isGlobalSearch()
1132
    {
1133
        return $this->globalSearch;
1134
    }
1135
1136
    /**
1137
     * @param boolean $globalSearch
1138
     *
1139
     * @return $this
1140
     */
1141
    public function setGlobalSearch($globalSearch)
1142
    {
1143
        $this->globalSearch = (bool)$globalSearch;
1144
1145
        return $this;
1146
    }
1147
1148
    /**
1149
     * @return boolean
1150
     */
1151
    public function isInstalled()
1152
    {
1153
        return $this->installed;
1154
    }
1155
1156
    /**
1157
     * @param boolean $installed
1158
     *
1159
     * @return $this
1160
     */
1161
    public function setInstalled($installed)
1162
    {
1163
        $this->installed = (bool)$installed;
1164
1165
        return $this;
1166
    }
1167
1168
    /**
1169
     * @return string
1170
     */
1171
    public function getLdapBase()
1172
    {
1173
        return $this->ldapBase;
1174
    }
1175
1176
    /**
1177
     * @param string $ldapBase
1178
     *
1179
     * @return $this
1180
     */
1181
    public function setLdapBase($ldapBase)
1182
    {
1183
        $this->ldapBase = $ldapBase;
1184
1185
        return $this;
1186
    }
1187
1188
    /**
1189
     * @return boolean
1190
     */
1191
    public function isLdapEnabled()
1192
    {
1193
        return $this->ldapEnabled;
1194
    }
1195
1196
    /**
1197
     * @param boolean $ldapEnabled
1198
     *
1199
     * @return $this
1200
     */
1201
    public function setLdapEnabled($ldapEnabled)
1202
    {
1203
        $this->ldapEnabled = (bool)$ldapEnabled;
1204
1205
        return $this;
1206
    }
1207
1208
    /**
1209
     * @return string
1210
     */
1211
    public function getLdapGroup()
1212
    {
1213
        return $this->ldapGroup;
1214
    }
1215
1216
    /**
1217
     * @param string $ldapGroup
1218
     *
1219
     * @return $this
1220
     */
1221
    public function setLdapGroup($ldapGroup)
1222
    {
1223
        $this->ldapGroup = $ldapGroup;
1224
1225
        return $this;
1226
    }
1227
1228
    /**
1229
     * @return string
1230
     */
1231
    public function getLdapServer()
1232
    {
1233
        return $this->ldapServer;
1234
    }
1235
1236
    /**
1237
     * @param string $ldapServer
1238
     *
1239
     * @return $this
1240
     */
1241
    public function setLdapServer($ldapServer)
1242
    {
1243
        $this->ldapServer = $ldapServer;
1244
1245
        return $this;
1246
    }
1247
1248
    /**
1249
     * @return boolean
1250
     */
1251
    public function isLogEnabled()
1252
    {
1253
        return $this->logEnabled;
1254
    }
1255
1256
    /**
1257
     * @param boolean $logEnabled
1258
     *
1259
     * @return $this
1260
     */
1261
    public function setLogEnabled($logEnabled)
1262
    {
1263
        $this->logEnabled = (bool)$logEnabled;
1264
1265
        return $this;
1266
    }
1267
1268
    /**
1269
     * @return boolean
1270
     */
1271
    public function isMailAuthenabled()
1272
    {
1273
        return $this->mailAuthenabled;
1274
    }
1275
1276
    /**
1277
     * @param boolean $mailAuthenabled
1278
     *
1279
     * @return $this
1280
     */
1281
    public function setMailAuthenabled($mailAuthenabled)
1282
    {
1283
        $this->mailAuthenabled = (bool)$mailAuthenabled;
1284
1285
        return $this;
1286
    }
1287
1288
    /**
1289
     * @return boolean
1290
     */
1291
    public function isMailEnabled()
1292
    {
1293
        return $this->mailEnabled;
1294
    }
1295
1296
    /**
1297
     * @param boolean $mailEnabled
1298
     *
1299
     * @return $this
1300
     */
1301
    public function setMailEnabled($mailEnabled)
1302
    {
1303
        $this->mailEnabled = (bool)$mailEnabled;
1304
1305
        return $this;
1306
    }
1307
1308
    /**
1309
     * @return string
1310
     */
1311
    public function getMailFrom()
1312
    {
1313
        return $this->mailFrom;
1314
    }
1315
1316
    /**
1317
     * @param string $mailFrom
1318
     *
1319
     * @return $this
1320
     */
1321
    public function setMailFrom($mailFrom)
1322
    {
1323
        $this->mailFrom = $mailFrom;
1324
1325
        return $this;
1326
    }
1327
1328
    /**
1329
     * @return string
1330
     */
1331
    public function getMailPass()
1332
    {
1333
        return $this->mailPass;
1334
    }
1335
1336
    /**
1337
     * @param string $mailPass
1338
     *
1339
     * @return $this
1340
     */
1341
    public function setMailPass($mailPass)
1342
    {
1343
        $this->mailPass = $mailPass;
1344
1345
        return $this;
1346
    }
1347
1348
    /**
1349
     * @return int
1350
     */
1351
    public function getMailPort()
1352
    {
1353
        return $this->mailPort;
1354
    }
1355
1356
    /**
1357
     * @param int $mailPort
1358
     *
1359
     * @return $this
1360
     */
1361
    public function setMailPort($mailPort)
1362
    {
1363
        $this->mailPort = (int)$mailPort;
1364
1365
        return $this;
1366
    }
1367
1368
    /**
1369
     * @return boolean
1370
     */
1371
    public function isMailRequestsEnabled()
1372
    {
1373
        return $this->mailRequestsEnabled;
1374
    }
1375
1376
    /**
1377
     * @param boolean $mailRequestsEnabled
1378
     *
1379
     * @return $this
1380
     */
1381
    public function setMailRequestsEnabled($mailRequestsEnabled)
1382
    {
1383
        $this->mailRequestsEnabled = (bool)$mailRequestsEnabled;
1384
1385
        return $this;
1386
    }
1387
1388
    /**
1389
     * @return string
1390
     */
1391
    public function getMailSecurity()
1392
    {
1393
        return $this->mailSecurity;
1394
    }
1395
1396
    /**
1397
     * @param string $mailSecurity
1398
     *
1399
     * @return $this
1400
     */
1401
    public function setMailSecurity($mailSecurity)
1402
    {
1403
        $this->mailSecurity = $mailSecurity;
1404
1405
        return $this;
1406
    }
1407
1408
    /**
1409
     * @return string
1410
     */
1411
    public function getMailServer()
1412
    {
1413
        return $this->mailServer;
1414
    }
1415
1416
    /**
1417
     * @param string $mailServer
1418
     *
1419
     * @return $this
1420
     */
1421
    public function setMailServer($mailServer)
1422
    {
1423
        $this->mailServer = $mailServer;
1424
1425
        return $this;
1426
    }
1427
1428
    /**
1429
     * @return string
1430
     */
1431
    public function getMailUser()
1432
    {
1433
        return $this->mailUser;
1434
    }
1435
1436
    /**
1437
     * @param string $mailUser
1438
     *
1439
     * @return $this
1440
     */
1441
    public function setMailUser($mailUser)
1442
    {
1443
        $this->mailUser = $mailUser;
1444
1445
        return $this;
1446
    }
1447
1448
    /**
1449
     * @return boolean
1450
     */
1451
    public function isMaintenance()
1452
    {
1453
        return (bool)$this->maintenance;
1454
    }
1455
1456
    /**
1457
     * @param boolean $maintenance
1458
     *
1459
     * @return $this
1460
     */
1461
    public function setMaintenance($maintenance)
1462
    {
1463
        $this->maintenance = (bool)$maintenance;
1464
1465
        return $this;
1466
    }
1467
1468
    /**
1469
     * @return string
1470
     */
1471
    public function getPasswordSalt()
1472
    {
1473
        return $this->passwordSalt;
1474
    }
1475
1476
    /**
1477
     * @param string $passwordSalt
1478
     *
1479
     * @return $this
1480
     */
1481
    public function setPasswordSalt($passwordSalt)
1482
    {
1483
        $this->passwordSalt = $passwordSalt;
1484
1485
        return $this;
1486
    }
1487
1488
    /**
1489
     * @return boolean
1490
     */
1491
    public function isResultsAsCards()
1492
    {
1493
        return $this->resultsAsCards;
1494
    }
1495
1496
    /**
1497
     * @param boolean $resultsAsCards
1498
     *
1499
     * @return $this
1500
     */
1501
    public function setResultsAsCards($resultsAsCards)
1502
    {
1503
        $this->resultsAsCards = (bool)$resultsAsCards;
1504
1505
        return $this;
1506
    }
1507
1508
    /**
1509
     * @return int
1510
     */
1511
    public function getSessionTimeout()
1512
    {
1513
        return $this->sessionTimeout;
1514
    }
1515
1516
    /**
1517
     * @param int $sessionTimeout
1518
     *
1519
     * @return $this
1520
     */
1521
    public function setSessionTimeout($sessionTimeout)
1522
    {
1523
        $this->sessionTimeout = (int)$sessionTimeout;
1524
1525
        return $this;
1526
    }
1527
1528
    /**
1529
     * @return string
1530
     */
1531
    public function getSiteLang()
1532
    {
1533
        return $this->siteLang;
1534
    }
1535
1536
    /**
1537
     * @param string $siteLang
1538
     *
1539
     * @return $this
1540
     */
1541
    public function setSiteLang($siteLang)
1542
    {
1543
        $this->siteLang = $siteLang;
1544
1545
        return $this;
1546
    }
1547
1548
    /**
1549
     * @return string
1550
     */
1551
    public function getSiteTheme()
1552
    {
1553
        return $this->siteTheme;
1554
    }
1555
1556
    /**
1557
     * @param string $siteTheme
1558
     *
1559
     * @return $this
1560
     */
1561
    public function setSiteTheme($siteTheme)
1562
    {
1563
        $this->siteTheme = $siteTheme;
1564
1565
        return $this;
1566
    }
1567
1568
    /**
1569
     * @return int
1570
     */
1571
    public function getConfigVersion()
1572
    {
1573
        return (string)$this->configVersion;
0 ignored issues
show
Bug Best Practice introduced by
The expression return (string)$this->configVersion returns the type string which is incompatible with the documented return type integer.
Loading history...
1574
    }
1575
1576
    /**
1577
     * @param string $configVersion
1578
     *
1579
     * @return $this
1580
     */
1581
    public function setConfigVersion($configVersion)
1582
    {
1583
        $this->configVersion = $configVersion;
1584
1585
        return $this;
1586
    }
1587
1588
    /**
1589
     * @return boolean
1590
     */
1591
    public function isWikiEnabled()
1592
    {
1593
        return $this->wikiEnabled;
1594
    }
1595
1596
    /**
1597
     * @param boolean $wikiEnabled
1598
     *
1599
     * @return $this
1600
     */
1601
    public function setWikiEnabled($wikiEnabled)
1602
    {
1603
        $this->wikiEnabled = (bool)$wikiEnabled;
1604
1605
        return $this;
1606
    }
1607
1608
    /**
1609
     * @return array
1610
     */
1611
    public function getWikiFilter()
1612
    {
1613
        return is_array($this->wikiFilter) ? $this->wikiFilter : [];
0 ignored issues
show
introduced by
The condition is_array($this->wikiFilter) is always true.
Loading history...
1614
    }
1615
1616
    /**
1617
     * @param array $wikiFilter
1618
     *
1619
     * @return $this
1620
     */
1621
    public function setWikiFilter($wikiFilter)
1622
    {
1623
        $this->wikiFilter = $wikiFilter;
1624
1625
        return $this;
1626
    }
1627
1628
    /**
1629
     * @return string
1630
     */
1631
    public function getWikiPageurl()
1632
    {
1633
        return $this->wikiPageurl;
1634
    }
1635
1636
    /**
1637
     * @param string $wikiPageurl
1638
     *
1639
     * @return $this
1640
     */
1641
    public function setWikiPageurl($wikiPageurl)
1642
    {
1643
        $this->wikiPageurl = $wikiPageurl;
1644
1645
        return $this;
1646
    }
1647
1648
    /**
1649
     * @return string
1650
     */
1651
    public function getWikiSearchurl()
1652
    {
1653
        return $this->wikiSearchurl;
1654
    }
1655
1656
    /**
1657
     * @param string $wikiSearchurl
1658
     *
1659
     * @return $this
1660
     */
1661
    public function setWikiSearchurl($wikiSearchurl)
1662
    {
1663
        $this->wikiSearchurl = $wikiSearchurl;
1664
1665
        return $this;
1666
    }
1667
1668
    /**
1669
     * @return boolean
1670
     */
1671
    public function isLdapAds()
1672
    {
1673
        return $this->ldapAds;
1674
    }
1675
1676
    /**
1677
     * @param boolean $ldapAds
1678
     *
1679
     * @return $this
1680
     */
1681
    public function setLdapAds($ldapAds)
1682
    {
1683
        $this->ldapAds = (bool)$ldapAds;
1684
1685
        return $this;
1686
    }
1687
1688
    /**
1689
     * @return string
1690
     */
1691
    public function getLdapBindPass()
1692
    {
1693
        return $this->ldapBindPass;
1694
    }
1695
1696
    /**
1697
     * @param string $ldapBindPass
1698
     *
1699
     * @return $this
1700
     */
1701
    public function setLdapBindPass($ldapBindPass)
1702
    {
1703
        $this->ldapBindPass = $ldapBindPass;
1704
1705
        return $this;
1706
    }
1707
1708
    /**
1709
     * @return boolean
1710
     */
1711
    public function isPublinksImageEnabled()
1712
    {
1713
        return $this->publinksImageEnabled;
1714
    }
1715
1716
    /**
1717
     * @param boolean $publinksImageEnabled
1718
     *
1719
     * @return $this
1720
     */
1721
    public function setPublinksImageEnabled($publinksImageEnabled)
1722
    {
1723
        $this->publinksImageEnabled = (bool)$publinksImageEnabled;
1724
1725
        return $this;
1726
    }
1727
1728
    /**
1729
     * @return boolean
1730
     */
1731
    public function isHttpsEnabled()
1732
    {
1733
        return $this->httpsEnabled;
1734
    }
1735
1736
    /**
1737
     * @param boolean $httpsEnabled
1738
     *
1739
     * @return $this
1740
     */
1741
    public function setHttpsEnabled($httpsEnabled)
1742
    {
1743
        $this->httpsEnabled = (bool)$httpsEnabled;
1744
1745
        return $this;
1746
    }
1747
1748
    /**
1749
     * @return boolean
1750
     */
1751
    public function isChecknotices()
1752
    {
1753
        return $this->checknotices;
1754
    }
1755
1756
    /**
1757
     * @param boolean $checknotices
1758
     *
1759
     * @return $this
1760
     */
1761
    public function setChecknotices($checknotices)
1762
    {
1763
        $this->checknotices = $checknotices;
1764
1765
        return $this;
1766
    }
1767
1768
    /**
1769
     * @return boolean
1770
     */
1771
    public function isAccountPassToImage()
1772
    {
1773
        return $this->accountPassToImage;
1774
    }
1775
1776
    /**
1777
     * @param boolean $accountPassToImage
1778
     *
1779
     * @return $this
1780
     */
1781
    public function setAccountPassToImage($accountPassToImage)
1782
    {
1783
        $this->accountPassToImage = (bool)$accountPassToImage;
1784
1785
        return $this;
1786
    }
1787
1788
    /**
1789
     * @return string
1790
     */
1791
    public function getUpgradeKey()
1792
    {
1793
        return $this->upgradeKey;
1794
    }
1795
1796
    /**
1797
     * @param string $upgradeKey
1798
     *
1799
     * @return $this
1800
     */
1801
    public function setUpgradeKey($upgradeKey)
1802
    {
1803
        $this->upgradeKey = $upgradeKey;
1804
1805
        return $this;
1806
    }
1807
1808
    /**
1809
     * @return int
1810
     */
1811
    public function getDbPort()
1812
    {
1813
        return $this->dbPort;
1814
    }
1815
1816
    /**
1817
     * @param int $dbPort
1818
     *
1819
     * @return $this
1820
     */
1821
    public function setDbPort($dbPort)
1822
    {
1823
        $this->dbPort = (int)$dbPort;
1824
1825
        return $this;
1826
    }
1827
1828
    /**
1829
     * @return boolean
1830
     */
1831
    public function isPublinksEnabled()
1832
    {
1833
        return $this->publinksEnabled;
1834
    }
1835
1836
    /**
1837
     * @param boolean $publinksEnabled
1838
     *
1839
     * @return $this
1840
     */
1841
    public function setPublinksEnabled($publinksEnabled)
1842
    {
1843
        $this->publinksEnabled = (bool)$publinksEnabled;
1844
1845
        return $this;
1846
    }
1847
1848
    /**
1849
     * Specify data which should be serialized to JSON
1850
     *
1851
     * @link  http://php.net/manual/en/jsonserializable.jsonserialize.php
1852
     * @return mixed data which can be serialized by <b>json_encode</b>,
1853
     *        which is a value of any type other than a resource.
1854
     * @since 5.4.0
1855
     */
1856
    public function jsonSerialize()
1857
    {
1858
        return get_object_vars($this);
1859
    }
1860
1861
    /**
1862
     * @return string
1863
     */
1864
    public function getConfigSaver()
1865
    {
1866
        return $this->configSaver;
1867
    }
1868
1869
    /**
1870
     * @param string $configSaver
1871
     *
1872
     * @return $this
1873
     */
1874
    public function setConfigSaver($configSaver)
1875
    {
1876
        $this->configSaver = $configSaver;
1877
1878
        return $this;
1879
    }
1880
1881
    /**
1882
     * @return string
1883
     */
1884
    public function getDbSocket()
1885
    {
1886
        return $this->dbSocket;
1887
    }
1888
1889
    /**
1890
     * @param string $dbSocket
1891
     */
1892
    public function setDbSocket($dbSocket)
1893
    {
1894
        $this->dbSocket = $dbSocket;
1895
    }
1896
1897
    /**
1898
     * @return bool
1899
     */
1900
    public function isEncryptSession()
1901
    {
1902
        return (bool)$this->encryptSession;
1903
    }
1904
1905
    /**
1906
     * @param bool $encryptSession
1907
     *
1908
     * @return $this
1909
     */
1910
    public function setEncryptSession($encryptSession)
1911
    {
1912
        $this->encryptSession = (bool)$encryptSession;
1913
1914
        return $this;
1915
    }
1916
1917
    /**
1918
     * @return bool
1919
     */
1920
    public function isAccountFullGroupAccess()
1921
    {
1922
        return (bool)$this->accountFullGroupAccess;
1923
    }
1924
1925
    /**
1926
     * @param bool $accountFullGroupAccess
1927
     *
1928
     * @return $this
1929
     */
1930
    public function setAccountFullGroupAccess($accountFullGroupAccess)
1931
    {
1932
        $this->accountFullGroupAccess = (bool)$accountFullGroupAccess;
1933
1934
        return $this;
1935
    }
1936
1937
    /**
1938
     * @return bool
1939
     */
1940
    public function isAuthBasicEnabled()
1941
    {
1942
        return (bool)$this->authBasicEnabled;
1943
    }
1944
1945
    /**
1946
     * @param bool $authBasicEnabled
1947
     */
1948
    public function setAuthBasicEnabled($authBasicEnabled)
1949
    {
1950
        $this->authBasicEnabled = $authBasicEnabled;
1951
    }
1952
1953
    /**
1954
     * @return string
1955
     */
1956
    public function getAuthBasicDomain()
1957
    {
1958
        return $this->authBasicDomain;
1959
    }
1960
1961
    /**
1962
     * @param string $authBasicDomain
1963
     */
1964
    public function setAuthBasicDomain($authBasicDomain)
1965
    {
1966
        $this->authBasicDomain = $authBasicDomain;
1967
    }
1968
1969
    /**
1970
     * @return bool
1971
     */
1972
    public function isAuthBasicAutoLoginEnabled()
1973
    {
1974
        return (bool)$this->authBasicAutoLoginEnabled;
1975
    }
1976
1977
    /**
1978
     * @param bool $authBasicAutoLoginEnabled
1979
     */
1980
    public function setAuthBasicAutoLoginEnabled($authBasicAutoLoginEnabled)
1981
    {
1982
        $this->authBasicAutoLoginEnabled = $authBasicAutoLoginEnabled;
1983
    }
1984
1985
    /**
1986
     * @return int
1987
     */
1988
    public function getSsoDefaultGroup()
1989
    {
1990
        return $this->ssoDefaultGroup;
1991
    }
1992
1993
    /**
1994
     * @param int $ssoDefaultGroup
1995
     */
1996
    public function setSsoDefaultGroup($ssoDefaultGroup)
1997
    {
1998
        $this->ssoDefaultGroup = $ssoDefaultGroup;
1999
    }
2000
2001
    /**
2002
     * @return int
2003
     */
2004
    public function getSsoDefaultProfile()
2005
    {
2006
        return $this->ssoDefaultProfile;
2007
    }
2008
2009
    /**
2010
     * @param int $ssoDefaultProfile
2011
     */
2012
    public function setSsoDefaultProfile($ssoDefaultProfile)
2013
    {
2014
        $this->ssoDefaultProfile = $ssoDefaultProfile;
2015
    }
2016
2017
    /**
2018
     * @return array
2019
     */
2020
    public function getMailRecipients()
2021
    {
2022
        return (array)$this->mailRecipients;
2023
    }
2024
2025
    /**
2026
     * @param array $mailRecipients
2027
     */
2028
    public function setMailRecipients(array $mailRecipients)
2029
    {
2030
        $this->mailRecipients = $mailRecipients;
2031
    }
2032
2033
    /**
2034
     * @return array
2035
     */
2036
    public function getMailEvents()
2037
    {
2038
        return (array)$this->mailEvents;
2039
    }
2040
2041
    /**
2042
     * @param array $mailEvents
2043
     */
2044
    public function setMailEvents(array $mailEvents)
2045
    {
2046
        $this->mailEvents = $mailEvents;
2047
    }
2048
2049
    /**
2050
     * @return string
2051
     */
2052
    public function getDatabaseVersion()
2053
    {
2054
        return (string)$this->databaseVersion;
2055
    }
2056
2057
    /**
2058
     * @param string $databaseVersion
2059
     *
2060
     * @return ConfigData
2061
     */
2062
    public function setDatabaseVersion($databaseVersion)
2063
    {
2064
        $this->databaseVersion = $databaseVersion;
2065
2066
        return $this;
2067
    }
2068
2069
    /**
2070
     * @return int
2071
     */
2072
    public function getConfigDate()
2073
    {
2074
        return $this->configDate;
2075
    }
2076
2077
    /**
2078
     * @param int $configDate
2079
     *
2080
     * @return $this
2081
     */
2082
    public function setConfigDate($configDate)
2083
    {
2084
        $this->configDate = (int)$configDate;
2085
2086
        return $this;
2087
    }
2088
2089
    /**
2090
     * @return bool
2091
     */
2092
    public function isAccountExpireEnabled()
2093
    {
2094
        return (int)$this->accountExpireEnabled;
0 ignored issues
show
Bug Best Practice introduced by
The expression return (int)$this->accountExpireEnabled returns the type integer which is incompatible with the documented return type boolean.
Loading history...
2095
    }
2096
2097
    /**
2098
     * @param bool $accountExpireEnabled
2099
     *
2100
     * @return ConfigData
2101
     */
2102
    public function setAccountExpireEnabled($accountExpireEnabled)
2103
    {
2104
        $this->accountExpireEnabled = $accountExpireEnabled;
2105
2106
        return $this;
2107
    }
2108
2109
    /**
2110
     * @return int
2111
     */
2112
    public function getAccountExpireTime()
2113
    {
2114
        return $this->accountExpireTime;
2115
    }
2116
2117
    /**
2118
     * @param int $accountExpireTime
2119
     *
2120
     * @return ConfigData
2121
     */
2122
    public function setAccountExpireTime($accountExpireTime)
2123
    {
2124
        $this->accountExpireTime = (int)$accountExpireTime;
2125
2126
        return $this;
2127
    }
2128
2129
    /**
2130
     * @return bool
2131
     */
2132
    public function isLdapTlsEnabled(): bool
2133
    {
2134
        return (bool)$this->ldapTlsEnabled;
2135
    }
2136
2137
    /**
2138
     * @param bool $ldapTlsEnabled
2139
     */
2140
    public function setLdapTlsEnabled(bool $ldapTlsEnabled)
2141
    {
2142
        $this->ldapTlsEnabled = (int)$ldapTlsEnabled;
0 ignored issues
show
Documentation Bug introduced by
The property $ldapTlsEnabled was declared of type boolean, but (int)$ldapTlsEnabled is of type integer. Maybe add a type cast?

This check looks for assignments to scalar types that may be of the wrong type.

To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.

$answer = 42;

$correct = false;

$correct = (bool) $answer;
Loading history...
2143
    }
2144
}