1 | <?php namespace PascalKleindienst\FormListGenerator\Support; |
||
7 | class Config |
||
8 | { |
||
9 | /** |
||
10 | * @var array |
||
11 | */ |
||
12 | protected static $items = []; |
||
13 | |||
14 | /** |
||
15 | * Set config items |
||
16 | * |
||
17 | * @param array $items |
||
18 | * @return void |
||
19 | */ |
||
20 | 54 | public static function set(array $items = []) |
|
24 | |||
25 | /** |
||
26 | * Get a config item if it exists or a default value if not |
||
27 | * |
||
28 | * @param string $key |
||
29 | * @param mixed $default |
||
30 | * @return mixed |
||
31 | */ |
||
32 | 96 | public static function get($key, $default = null) |
|
40 | } |
||
41 |