Passed
Push — devel-3.0 ( 18c750...febc79 )
by Rubén
03:13
created

ConfigData::setLdapTlsEnabled()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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