Passed
Branch scrutinizer (dafd44)
by Wanderson
01:40
created

Config::getAll()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Win\Data;
4
5
/**
6
 * Configurações
7
 */
8
class Config extends Data {
9
10
	/** @var mixed[] */
11
	protected static $config;
12
13
	final public static function load($config) {
14
		static::$config = $config;
15
	}
16
17
	public static function getAll() {
18
		return static::$config;
19
	}
20
21
	public static function set($key, $value) {
22
		static::$config[$key] = $value;
23
	}
24
25
}
26