Completed
Push — 2.0 ( 0d93f2...14c778 )
by Marco
16:42
created

DefaultConfiguration   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 1
cbo 0
dl 0
loc 21
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A get() 0 7 1
1
<?php namespace Comodojo\Extender\Components;
2
3
/**
4
 * @package     Comodojo Extender
5
 * @author      Marco Giovinazzi <[email protected]>
6
 * @license     GPL-3.0+
7
 *
8
 * LICENSE:
9
 *
10
 * This program is free software: you can redistribute it and/or modify
11
 * it under the terms of the GNU Affero General Public License as
12
 * published by the Free Software Foundation, either version 3 of the
13
 * License, or (at your option) any later version.
14
 *
15
 * This program is distributed in the hope that it will be useful,
16
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 * GNU Affero General Public License for more details.
19
 *
20
 * You should have received a copy of the GNU Affero General Public License
21
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
22
 */
23
24
25
class DefaultConfiguration {
26
27
    private static $configuration = array(
28
        'encoding' => 'UTF-8',
29
        'looptime' => 1,
30
        'niceness' => 0,
31
        'multithread' => true,
32
        'fork-limit' => 0,
33
        'child-max-result-bytes' => 2048,
34
        'child-max-runtime' => 600
35
    );
36
37
    public static function get() {
38
39
        $config = self::$configuration;
40
41
        return $config;
42
43
    }
44
45
}
46