Configurator   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 20
c 1
b 0
f 0
dl 0
loc 28
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 13 1
1
<?php
2
3
namespace XoopsModules\Blocksadmin\Common;
4
5
/*
6
 You may not change or alter any portion of this comment or credits
7
 of supporting developers from this source code or any supporting source code
8
 which is considered copyrighted (c) material of the original comment or credit authors.
9
10
 This program is distributed in the hope that it will be useful,
11
 but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
 */
14
15
16
/**
17
 * Configurator Class
18
 *
19
 * @copyright   XOOPS Project (https://xoops.org)
20
 * @license     http://www.fsf.org/copyleft/gpl.html GNU public license
21
 * @author      XOOPS Development Team
22
 */
23
24
/**
25
 * Class Configurator
26
 */
27
class Configurator
28
{
29
    public $name;
30
    public $paths           = [];
31
    public $uploadFolders   = [];
32
    public $copyBlankFiles  = [];
33
    public $copyTestFolders = [];
34
    public $templateFolders = [];
35
    public $oldFiles        = [];
36
    public $oldFolders      = [];
37
    public $modCopyright;
38
39
    /**
40
     * Configurator constructor.
41
     */
42
    public function __construct()
43
    {
44
        $config = require \dirname(__DIR__, 2) . '/config/config.php';
45
46
        $this->name            = $config->name;
47
        $this->paths           = $config->paths;
48
        $this->uploadFolders   = $config->uploadFolders;
49
        $this->copyBlankFiles  = $config->copyBlankFiles;
50
        $this->copyTestFolders = $config->copyTestFolders;
51
        $this->templateFolders = $config->templateFolders;
52
        $this->oldFiles        = $config->oldFiles;
53
        $this->oldFolders      = $config->oldFolders;
54
        $this->modCopyright    = $config->modCopyright;
55
    }
56
}
57