Passed
Push — 3.0 ( d2a6b7...b247bd )
by Rubén
04:14
created

ConfigData::getLdapType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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