| 1 | <?php |
||
| 8 | abstract class Configuration |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var mixed[] map where component name => value |
||
| 12 | */ |
||
| 13 | protected $values = []; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var callable[] map where component name => factory function |
||
| 17 | */ |
||
| 18 | protected $factory = []; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var array map where component name => mixed list/map of parameter names |
||
| 22 | */ |
||
| 23 | protected $factory_map = []; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var callable[][] map where component name => list of configuration functions |
||
| 27 | */ |
||
| 28 | protected $config = []; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var callable[][] map where component name => mixed list/map of parameter names |
||
| 32 | */ |
||
| 33 | protected $config_map = []; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Internally copy configuration state, e.g. from `ContainerFactory` to `Container` |
||
| 37 | * |
||
| 38 | * @param Configuration $target |
||
| 39 | */ |
||
| 40 | 1 | protected function copyTo(Configuration $target) |
|
| 48 | } |
||
| 49 |