1 | <?php |
||
5 | class ConfigDefinition |
||
6 | { |
||
7 | const GROUP_COMPONENTS = 1; |
||
8 | |||
9 | const GROUP_MODULES = 2; |
||
10 | |||
11 | const GROUP_APPLICATIONS = 3; |
||
12 | |||
13 | private $_group; |
||
14 | |||
15 | private $_key; |
||
16 | |||
17 | private $_config = []; |
||
18 | |||
19 | public function __construct($group, $key, $config) |
||
30 | |||
31 | private $_env = Config::ENV_ALL; |
||
32 | |||
33 | public function env($env) |
||
39 | |||
40 | private $_runtime = Config::RUNTIME_ALL; |
||
41 | |||
42 | public function runtime($runtime) |
||
48 | |||
49 | public function consoleRuntime() |
||
55 | |||
56 | public function webRuntime() |
||
62 | |||
63 | public function validateRuntime($runtime) |
||
67 | |||
68 | public function validateEnvs(array $envs) |
||
73 | |||
74 | public function getGroup() |
||
78 | |||
79 | public function getKey() |
||
83 | |||
84 | public function getConfig() |
||
88 | } |