1 | <?php |
||
10 | abstract class AbstractConfig |
||
11 | { |
||
12 | /** |
||
13 | * Config. |
||
14 | * |
||
15 | * @var array |
||
16 | */ |
||
17 | protected $config = []; |
||
18 | |||
19 | /** |
||
20 | * Config constructor. |
||
21 | * |
||
22 | * @param array $config |
||
23 | */ |
||
24 | public function __construct(array $config = []) |
||
30 | |||
31 | /** |
||
32 | * Set new config value. |
||
33 | * |
||
34 | * @param array $config |
||
35 | */ |
||
36 | public function setConfig(array $config) |
||
40 | |||
41 | /** |
||
42 | * Merge configs. |
||
43 | * |
||
44 | * @param array $config |
||
45 | */ |
||
46 | public function mergeConfig(array $config) |
||
50 | } |