Passed
Push — 3.0 ( 5e1ed3...5a5495 )
by Rubén
04:22
created

ConfigData::getFilesAllowedMime()   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 string
206
     */
207
    private $ldapGroup;
208
    /**
209
     * @var string
210
     */
211
    private $ldapServer;
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
     * @return int
1082
     */
1083
    public function getFilesAllowedSize()
1084
    {
1085
        return $this->filesAllowedSize;
1086
    }
1087
1088
    /**
1089
     * @param int $filesAllowedSize
1090
     *
1091
     * @return $this
1092
     */
1093
    public function setFilesAllowedSize($filesAllowedSize)
1094
    {
1095
        $this->filesAllowedSize = (int)$filesAllowedSize;
1096
1097
        return $this;
1098
    }
1099
1100
    /**
1101
     * @return boolean
1102
     */
1103
    public function isFilesEnabled()
1104
    {
1105
        return $this->filesEnabled;
1106
    }
1107
1108
    /**
1109
     * @param boolean $filesEnabled
1110
     *
1111
     * @return $this
1112
     */
1113
    public function setFilesEnabled($filesEnabled)
1114
    {
1115
        $this->filesEnabled = (bool)$filesEnabled;
1116
1117
        return $this;
1118
    }
1119
1120
    /**
1121
     * @return boolean
1122
     */
1123
    public function isGlobalSearch()
1124
    {
1125
        return $this->globalSearch;
1126
    }
1127
1128
    /**
1129
     * @param boolean $globalSearch
1130
     *
1131
     * @return $this
1132
     */
1133
    public function setGlobalSearch($globalSearch)
1134
    {
1135
        $this->globalSearch = (bool)$globalSearch;
1136
1137
        return $this;
1138
    }
1139
1140
    /**
1141
     * @return boolean
1142
     */
1143
    public function isInstalled()
1144
    {
1145
        return $this->installed;
1146
    }
1147
1148
    /**
1149
     * @param boolean $installed
1150
     *
1151
     * @return $this
1152
     */
1153
    public function setInstalled($installed)
1154
    {
1155
        $this->installed = (bool)$installed;
1156
1157
        return $this;
1158
    }
1159
1160
    /**
1161
     * @return string
1162
     */
1163
    public function getLdapBase()
1164
    {
1165
        return $this->ldapBase;
1166
    }
1167
1168
    /**
1169
     * @param string $ldapBase
1170
     *
1171
     * @return $this
1172
     */
1173
    public function setLdapBase($ldapBase)
1174
    {
1175
        $this->ldapBase = $ldapBase;
1176
1177
        return $this;
1178
    }
1179
1180
    /**
1181
     * @return boolean
1182
     */
1183
    public function isLdapEnabled()
1184
    {
1185
        return $this->ldapEnabled;
1186
    }
1187
1188
    /**
1189
     * @param boolean $ldapEnabled
1190
     *
1191
     * @return $this
1192
     */
1193
    public function setLdapEnabled($ldapEnabled)
1194
    {
1195
        $this->ldapEnabled = (bool)$ldapEnabled;
1196
1197
        return $this;
1198
    }
1199
1200
    /**
1201
     * @return string
1202
     */
1203
    public function getLdapGroup()
1204
    {
1205
        return $this->ldapGroup;
1206
    }
1207
1208
    /**
1209
     * @param string $ldapGroup
1210
     *
1211
     * @return $this
1212
     */
1213
    public function setLdapGroup($ldapGroup)
1214
    {
1215
        $this->ldapGroup = $ldapGroup;
1216
1217
        return $this;
1218
    }
1219
1220
    /**
1221
     * @return string
1222
     */
1223
    public function getLdapServer()
1224
    {
1225
        return $this->ldapServer;
1226
    }
1227
1228
    /**
1229
     * @param string $ldapServer
1230
     *
1231
     * @return $this
1232
     */
1233
    public function setLdapServer($ldapServer)
1234
    {
1235
        $this->ldapServer = $ldapServer;
1236
1237
        return $this;
1238
    }
1239
1240
    /**
1241
     * @return boolean
1242
     */
1243
    public function isLogEnabled()
1244
    {
1245
        return $this->logEnabled;
1246
    }
1247
1248
    /**
1249
     * @param boolean $logEnabled
1250
     *
1251
     * @return $this
1252
     */
1253
    public function setLogEnabled($logEnabled)
1254
    {
1255
        $this->logEnabled = (bool)$logEnabled;
1256
1257
        return $this;
1258
    }
1259
1260
    /**
1261
     * @return boolean
1262
     */
1263
    public function isMailAuthenabled()
1264
    {
1265
        return $this->mailAuthenabled;
1266
    }
1267
1268
    /**
1269
     * @param boolean $mailAuthenabled
1270
     *
1271
     * @return $this
1272
     */
1273
    public function setMailAuthenabled($mailAuthenabled)
1274
    {
1275
        $this->mailAuthenabled = (bool)$mailAuthenabled;
1276
1277
        return $this;
1278
    }
1279
1280
    /**
1281
     * @return boolean
1282
     */
1283
    public function isMailEnabled()
1284
    {
1285
        return $this->mailEnabled;
1286
    }
1287
1288
    /**
1289
     * @param boolean $mailEnabled
1290
     *
1291
     * @return $this
1292
     */
1293
    public function setMailEnabled($mailEnabled)
1294
    {
1295
        $this->mailEnabled = (bool)$mailEnabled;
1296
1297
        return $this;
1298
    }
1299
1300
    /**
1301
     * @return string
1302
     */
1303
    public function getMailFrom()
1304
    {
1305
        return $this->mailFrom;
1306
    }
1307
1308
    /**
1309
     * @param string $mailFrom
1310
     *
1311
     * @return $this
1312
     */
1313
    public function setMailFrom($mailFrom)
1314
    {
1315
        $this->mailFrom = $mailFrom;
1316
1317
        return $this;
1318
    }
1319
1320
    /**
1321
     * @return string
1322
     */
1323
    public function getMailPass()
1324
    {
1325
        return $this->mailPass;
1326
    }
1327
1328
    /**
1329
     * @param string $mailPass
1330
     *
1331
     * @return $this
1332
     */
1333
    public function setMailPass($mailPass)
1334
    {
1335
        $this->mailPass = $mailPass;
1336
1337
        return $this;
1338
    }
1339
1340
    /**
1341
     * @return int
1342
     */
1343
    public function getMailPort()
1344
    {
1345
        return $this->mailPort;
1346
    }
1347
1348
    /**
1349
     * @param int $mailPort
1350
     *
1351
     * @return $this
1352
     */
1353
    public function setMailPort($mailPort)
1354
    {
1355
        $this->mailPort = (int)$mailPort;
1356
1357
        return $this;
1358
    }
1359
1360
    /**
1361
     * @return boolean
1362
     */
1363
    public function isMailRequestsEnabled()
1364
    {
1365
        return $this->mailRequestsEnabled;
1366
    }
1367
1368
    /**
1369
     * @param boolean $mailRequestsEnabled
1370
     *
1371
     * @return $this
1372
     */
1373
    public function setMailRequestsEnabled($mailRequestsEnabled)
1374
    {
1375
        $this->mailRequestsEnabled = (bool)$mailRequestsEnabled;
1376
1377
        return $this;
1378
    }
1379
1380
    /**
1381
     * @return string
1382
     */
1383
    public function getMailSecurity()
1384
    {
1385
        return $this->mailSecurity;
1386
    }
1387
1388
    /**
1389
     * @param string $mailSecurity
1390
     *
1391
     * @return $this
1392
     */
1393
    public function setMailSecurity($mailSecurity)
1394
    {
1395
        $this->mailSecurity = $mailSecurity;
1396
1397
        return $this;
1398
    }
1399
1400
    /**
1401
     * @return string
1402
     */
1403
    public function getMailServer()
1404
    {
1405
        return $this->mailServer;
1406
    }
1407
1408
    /**
1409
     * @param string $mailServer
1410
     *
1411
     * @return $this
1412
     */
1413
    public function setMailServer($mailServer)
1414
    {
1415
        $this->mailServer = $mailServer;
1416
1417
        return $this;
1418
    }
1419
1420
    /**
1421
     * @return string
1422
     */
1423
    public function getMailUser()
1424
    {
1425
        return $this->mailUser;
1426
    }
1427
1428
    /**
1429
     * @param string $mailUser
1430
     *
1431
     * @return $this
1432
     */
1433
    public function setMailUser($mailUser)
1434
    {
1435
        $this->mailUser = $mailUser;
1436
1437
        return $this;
1438
    }
1439
1440
    /**
1441
     * @return boolean
1442
     */
1443
    public function isMaintenance()
1444
    {
1445
        return (bool)$this->maintenance;
1446
    }
1447
1448
    /**
1449
     * @param boolean $maintenance
1450
     *
1451
     * @return $this
1452
     */
1453
    public function setMaintenance($maintenance)
1454
    {
1455
        $this->maintenance = (bool)$maintenance;
1456
1457
        return $this;
1458
    }
1459
1460
    /**
1461
     * @return string
1462
     */
1463
    public function getPasswordSalt()
1464
    {
1465
        return $this->passwordSalt;
1466
    }
1467
1468
    /**
1469
     * @param string $passwordSalt
1470
     *
1471
     * @return $this
1472
     */
1473
    public function setPasswordSalt($passwordSalt)
1474
    {
1475
        $this->passwordSalt = $passwordSalt;
1476
1477
        return $this;
1478
    }
1479
1480
    /**
1481
     * @return boolean
1482
     */
1483
    public function isResultsAsCards()
1484
    {
1485
        return $this->resultsAsCards;
1486
    }
1487
1488
    /**
1489
     * @param boolean $resultsAsCards
1490
     *
1491
     * @return $this
1492
     */
1493
    public function setResultsAsCards($resultsAsCards)
1494
    {
1495
        $this->resultsAsCards = (bool)$resultsAsCards;
1496
1497
        return $this;
1498
    }
1499
1500
    /**
1501
     * @return int
1502
     */
1503
    public function getSessionTimeout()
1504
    {
1505
        return $this->sessionTimeout;
1506
    }
1507
1508
    /**
1509
     * @param int $sessionTimeout
1510
     *
1511
     * @return $this
1512
     */
1513
    public function setSessionTimeout($sessionTimeout)
1514
    {
1515
        $this->sessionTimeout = (int)$sessionTimeout;
1516
1517
        return $this;
1518
    }
1519
1520
    /**
1521
     * @return string
1522
     */
1523
    public function getSiteLang()
1524
    {
1525
        return $this->siteLang;
1526
    }
1527
1528
    /**
1529
     * @param string $siteLang
1530
     *
1531
     * @return $this
1532
     */
1533
    public function setSiteLang($siteLang)
1534
    {
1535
        $this->siteLang = $siteLang;
1536
1537
        return $this;
1538
    }
1539
1540
    /**
1541
     * @return string
1542
     */
1543
    public function getSiteTheme()
1544
    {
1545
        return $this->siteTheme;
1546
    }
1547
1548
    /**
1549
     * @param string $siteTheme
1550
     *
1551
     * @return $this
1552
     */
1553
    public function setSiteTheme($siteTheme)
1554
    {
1555
        $this->siteTheme = $siteTheme;
1556
1557
        return $this;
1558
    }
1559
1560
    /**
1561
     * @return int
1562
     */
1563
    public function getConfigVersion()
1564
    {
1565
        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...
1566
    }
1567
1568
    /**
1569
     * @param string $configVersion
1570
     *
1571
     * @return $this
1572
     */
1573
    public function setConfigVersion($configVersion)
1574
    {
1575
        $this->configVersion = $configVersion;
1576
1577
        return $this;
1578
    }
1579
1580
    /**
1581
     * @return boolean
1582
     */
1583
    public function isWikiEnabled()
1584
    {
1585
        return $this->wikiEnabled;
1586
    }
1587
1588
    /**
1589
     * @param boolean $wikiEnabled
1590
     *
1591
     * @return $this
1592
     */
1593
    public function setWikiEnabled($wikiEnabled)
1594
    {
1595
        $this->wikiEnabled = (bool)$wikiEnabled;
1596
1597
        return $this;
1598
    }
1599
1600
    /**
1601
     * @return array
1602
     */
1603
    public function getWikiFilter()
1604
    {
1605
        return is_array($this->wikiFilter) ? $this->wikiFilter : [];
0 ignored issues
show
introduced by
The condition is_array($this->wikiFilter) is always true.
Loading history...
1606
    }
1607
1608
    /**
1609
     * @param array $wikiFilter
1610
     *
1611
     * @return $this
1612
     */
1613
    public function setWikiFilter($wikiFilter)
1614
    {
1615
        $this->wikiFilter = $wikiFilter;
1616
1617
        return $this;
1618
    }
1619
1620
    /**
1621
     * @return string
1622
     */
1623
    public function getWikiPageurl()
1624
    {
1625
        return $this->wikiPageurl;
1626
    }
1627
1628
    /**
1629
     * @param string $wikiPageurl
1630
     *
1631
     * @return $this
1632
     */
1633
    public function setWikiPageurl($wikiPageurl)
1634
    {
1635
        $this->wikiPageurl = $wikiPageurl;
1636
1637
        return $this;
1638
    }
1639
1640
    /**
1641
     * @return string
1642
     */
1643
    public function getWikiSearchurl()
1644
    {
1645
        return $this->wikiSearchurl;
1646
    }
1647
1648
    /**
1649
     * @param string $wikiSearchurl
1650
     *
1651
     * @return $this
1652
     */
1653
    public function setWikiSearchurl($wikiSearchurl)
1654
    {
1655
        $this->wikiSearchurl = $wikiSearchurl;
1656
1657
        return $this;
1658
    }
1659
1660
    /**
1661
     * @return boolean
1662
     */
1663
    public function isLdapAds()
1664
    {
1665
        return $this->ldapAds;
1666
    }
1667
1668
    /**
1669
     * @param boolean $ldapAds
1670
     *
1671
     * @return $this
1672
     */
1673
    public function setLdapAds($ldapAds)
1674
    {
1675
        $this->ldapAds = (bool)$ldapAds;
1676
1677
        return $this;
1678
    }
1679
1680
    /**
1681
     * @return string
1682
     */
1683
    public function getLdapBindPass()
1684
    {
1685
        return $this->ldapBindPass;
1686
    }
1687
1688
    /**
1689
     * @param string $ldapBindPass
1690
     *
1691
     * @return $this
1692
     */
1693
    public function setLdapBindPass($ldapBindPass)
1694
    {
1695
        $this->ldapBindPass = $ldapBindPass;
1696
1697
        return $this;
1698
    }
1699
1700
    /**
1701
     * @return boolean
1702
     */
1703
    public function isPublinksImageEnabled()
1704
    {
1705
        return $this->publinksImageEnabled;
1706
    }
1707
1708
    /**
1709
     * @param boolean $publinksImageEnabled
1710
     *
1711
     * @return $this
1712
     */
1713
    public function setPublinksImageEnabled($publinksImageEnabled)
1714
    {
1715
        $this->publinksImageEnabled = (bool)$publinksImageEnabled;
1716
1717
        return $this;
1718
    }
1719
1720
    /**
1721
     * @return boolean
1722
     */
1723
    public function isHttpsEnabled()
1724
    {
1725
        return $this->httpsEnabled;
1726
    }
1727
1728
    /**
1729
     * @param boolean $httpsEnabled
1730
     *
1731
     * @return $this
1732
     */
1733
    public function setHttpsEnabled($httpsEnabled)
1734
    {
1735
        $this->httpsEnabled = (bool)$httpsEnabled;
1736
1737
        return $this;
1738
    }
1739
1740
    /**
1741
     * @return boolean
1742
     */
1743
    public function isChecknotices()
1744
    {
1745
        return $this->checknotices;
1746
    }
1747
1748
    /**
1749
     * @param boolean $checknotices
1750
     *
1751
     * @return $this
1752
     */
1753
    public function setChecknotices($checknotices)
1754
    {
1755
        $this->checknotices = $checknotices;
1756
1757
        return $this;
1758
    }
1759
1760
    /**
1761
     * @return boolean
1762
     */
1763
    public function isAccountPassToImage()
1764
    {
1765
        return $this->accountPassToImage;
1766
    }
1767
1768
    /**
1769
     * @param boolean $accountPassToImage
1770
     *
1771
     * @return $this
1772
     */
1773
    public function setAccountPassToImage($accountPassToImage)
1774
    {
1775
        $this->accountPassToImage = (bool)$accountPassToImage;
1776
1777
        return $this;
1778
    }
1779
1780
    /**
1781
     * @return string
1782
     */
1783
    public function getUpgradeKey()
1784
    {
1785
        return $this->upgradeKey;
1786
    }
1787
1788
    /**
1789
     * @param string $upgradeKey
1790
     *
1791
     * @return $this
1792
     */
1793
    public function setUpgradeKey($upgradeKey)
1794
    {
1795
        $this->upgradeKey = $upgradeKey;
1796
1797
        return $this;
1798
    }
1799
1800
    /**
1801
     * @return int
1802
     */
1803
    public function getDbPort()
1804
    {
1805
        return $this->dbPort;
1806
    }
1807
1808
    /**
1809
     * @param int $dbPort
1810
     *
1811
     * @return $this
1812
     */
1813
    public function setDbPort($dbPort)
1814
    {
1815
        $this->dbPort = (int)$dbPort;
1816
1817
        return $this;
1818
    }
1819
1820
    /**
1821
     * @return boolean
1822
     */
1823
    public function isPublinksEnabled()
1824
    {
1825
        return $this->publinksEnabled;
1826
    }
1827
1828
    /**
1829
     * @param boolean $publinksEnabled
1830
     *
1831
     * @return $this
1832
     */
1833
    public function setPublinksEnabled($publinksEnabled)
1834
    {
1835
        $this->publinksEnabled = (bool)$publinksEnabled;
1836
1837
        return $this;
1838
    }
1839
1840
    /**
1841
     * Specify data which should be serialized to JSON
1842
     *
1843
     * @link  http://php.net/manual/en/jsonserializable.jsonserialize.php
1844
     * @return mixed data which can be serialized by <b>json_encode</b>,
1845
     *        which is a value of any type other than a resource.
1846
     * @since 5.4.0
1847
     */
1848
    public function jsonSerialize()
1849
    {
1850
        return get_object_vars($this);
1851
    }
1852
1853
    /**
1854
     * @return string
1855
     */
1856
    public function getConfigSaver()
1857
    {
1858
        return $this->configSaver;
1859
    }
1860
1861
    /**
1862
     * @param string $configSaver
1863
     *
1864
     * @return $this
1865
     */
1866
    public function setConfigSaver($configSaver)
1867
    {
1868
        $this->configSaver = $configSaver;
1869
1870
        return $this;
1871
    }
1872
1873
    /**
1874
     * @return string
1875
     */
1876
    public function getDbSocket()
1877
    {
1878
        return $this->dbSocket;
1879
    }
1880
1881
    /**
1882
     * @param string $dbSocket
1883
     */
1884
    public function setDbSocket($dbSocket)
1885
    {
1886
        $this->dbSocket = $dbSocket;
1887
    }
1888
1889
    /**
1890
     * @return bool
1891
     */
1892
    public function isEncryptSession()
1893
    {
1894
        return (bool)$this->encryptSession;
1895
    }
1896
1897
    /**
1898
     * @param bool $encryptSession
1899
     *
1900
     * @return $this
1901
     */
1902
    public function setEncryptSession($encryptSession)
1903
    {
1904
        $this->encryptSession = (bool)$encryptSession;
1905
1906
        return $this;
1907
    }
1908
1909
    /**
1910
     * @return bool
1911
     */
1912
    public function isAccountFullGroupAccess()
1913
    {
1914
        return (bool)$this->accountFullGroupAccess;
1915
    }
1916
1917
    /**
1918
     * @param bool $accountFullGroupAccess
1919
     *
1920
     * @return $this
1921
     */
1922
    public function setAccountFullGroupAccess($accountFullGroupAccess)
1923
    {
1924
        $this->accountFullGroupAccess = (bool)$accountFullGroupAccess;
1925
1926
        return $this;
1927
    }
1928
1929
    /**
1930
     * @return bool
1931
     */
1932
    public function isAuthBasicEnabled()
1933
    {
1934
        return (bool)$this->authBasicEnabled;
1935
    }
1936
1937
    /**
1938
     * @param bool $authBasicEnabled
1939
     */
1940
    public function setAuthBasicEnabled($authBasicEnabled)
1941
    {
1942
        $this->authBasicEnabled = $authBasicEnabled;
1943
    }
1944
1945
    /**
1946
     * @return string
1947
     */
1948
    public function getAuthBasicDomain()
1949
    {
1950
        return $this->authBasicDomain;
1951
    }
1952
1953
    /**
1954
     * @param string $authBasicDomain
1955
     */
1956
    public function setAuthBasicDomain($authBasicDomain)
1957
    {
1958
        $this->authBasicDomain = $authBasicDomain;
1959
    }
1960
1961
    /**
1962
     * @return bool
1963
     */
1964
    public function isAuthBasicAutoLoginEnabled()
1965
    {
1966
        return (bool)$this->authBasicAutoLoginEnabled;
1967
    }
1968
1969
    /**
1970
     * @param bool $authBasicAutoLoginEnabled
1971
     */
1972
    public function setAuthBasicAutoLoginEnabled($authBasicAutoLoginEnabled)
1973
    {
1974
        $this->authBasicAutoLoginEnabled = $authBasicAutoLoginEnabled;
1975
    }
1976
1977
    /**
1978
     * @return int
1979
     */
1980
    public function getSsoDefaultGroup()
1981
    {
1982
        return $this->ssoDefaultGroup;
1983
    }
1984
1985
    /**
1986
     * @param int $ssoDefaultGroup
1987
     */
1988
    public function setSsoDefaultGroup($ssoDefaultGroup)
1989
    {
1990
        $this->ssoDefaultGroup = $ssoDefaultGroup;
1991
    }
1992
1993
    /**
1994
     * @return int
1995
     */
1996
    public function getSsoDefaultProfile()
1997
    {
1998
        return $this->ssoDefaultProfile;
1999
    }
2000
2001
    /**
2002
     * @param int $ssoDefaultProfile
2003
     */
2004
    public function setSsoDefaultProfile($ssoDefaultProfile)
2005
    {
2006
        $this->ssoDefaultProfile = $ssoDefaultProfile;
2007
    }
2008
2009
    /**
2010
     * @return array
2011
     */
2012
    public function getMailRecipients()
2013
    {
2014
        return (array)$this->mailRecipients;
2015
    }
2016
2017
    /**
2018
     * @param array $mailRecipients
2019
     */
2020
    public function setMailRecipients(array $mailRecipients)
2021
    {
2022
        $this->mailRecipients = $mailRecipients;
2023
    }
2024
2025
    /**
2026
     * @return array
2027
     */
2028
    public function getMailEvents()
2029
    {
2030
        return (array)$this->mailEvents;
2031
    }
2032
2033
    /**
2034
     * @param array $mailEvents
2035
     */
2036
    public function setMailEvents(array $mailEvents)
2037
    {
2038
        $this->mailEvents = $mailEvents;
2039
    }
2040
2041
    /**
2042
     * @return string
2043
     */
2044
    public function getDatabaseVersion()
2045
    {
2046
        return (string)$this->databaseVersion;
2047
    }
2048
2049
    /**
2050
     * @param string $databaseVersion
2051
     *
2052
     * @return ConfigData
2053
     */
2054
    public function setDatabaseVersion($databaseVersion)
2055
    {
2056
        $this->databaseVersion = $databaseVersion;
2057
2058
        return $this;
2059
    }
2060
2061
    /**
2062
     * @return int
2063
     */
2064
    public function getConfigDate()
2065
    {
2066
        return $this->configDate;
2067
    }
2068
2069
    /**
2070
     * @param int $configDate
2071
     *
2072
     * @return $this
2073
     */
2074
    public function setConfigDate($configDate)
2075
    {
2076
        $this->configDate = (int)$configDate;
2077
2078
        return $this;
2079
    }
2080
2081
    /**
2082
     * @return bool
2083
     */
2084
    public function isAccountExpireEnabled()
2085
    {
2086
        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...
2087
    }
2088
2089
    /**
2090
     * @param bool $accountExpireEnabled
2091
     *
2092
     * @return ConfigData
2093
     */
2094
    public function setAccountExpireEnabled($accountExpireEnabled)
2095
    {
2096
        $this->accountExpireEnabled = $accountExpireEnabled;
2097
2098
        return $this;
2099
    }
2100
2101
    /**
2102
     * @return int
2103
     */
2104
    public function getAccountExpireTime()
2105
    {
2106
        return $this->accountExpireTime;
2107
    }
2108
2109
    /**
2110
     * @param int $accountExpireTime
2111
     *
2112
     * @return ConfigData
2113
     */
2114
    public function setAccountExpireTime($accountExpireTime)
2115
    {
2116
        $this->accountExpireTime = (int)$accountExpireTime;
2117
2118
        return $this;
2119
    }
2120
2121
    /**
2122
     * @return bool
2123
     */
2124
    public function isLdapTlsEnabled(): bool
2125
    {
2126
        return (bool)$this->ldapTlsEnabled;
2127
    }
2128
2129
    /**
2130
     * @param bool $ldapTlsEnabled
2131
     */
2132
    public function setLdapTlsEnabled(bool $ldapTlsEnabled)
2133
    {
2134
        $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...
2135
    }
2136
2137
    /**
2138
     * @return array
2139
     */
2140
    public function getFilesAllowedMime(): array
2141
    {
2142
        return $this->filesAllowedMime;
2143
    }
2144
2145
    /**
2146
     * @param array $filesAllowedMime
2147
     */
2148
    public function setFilesAllowedMime(array $filesAllowedMime)
2149
    {
2150
        $this->filesAllowedMime = $filesAllowedMime;
2151
    }
2152
}