| 1 | <?php | ||
| 21 | class TreeConfigBuilder | ||
| 22 | { | ||
| 23 | /** | ||
| 24 | * @var ArrayDefinition | ||
| 25 | */ | ||
| 26 | protected $root; | ||
| 27 | |||
| 28 | /** | ||
| 29 | * Create root node. | ||
| 30 | * | ||
| 31 | * @param string $name | ||
| 32 | * @param string $type | ||
| 33 | * @param NodeDefinitionBuilder|null $builder | ||
| 34 | * | ||
| 35 | * @return ArrayDefinition|EnumDefinition|AbstractNumericNode|NodeDefinitionInterface | ||
| 36 | */ | ||
| 37 | public function root($name, $type = 'array', NodeDefinitionBuilder $builder = null) | ||
| 43 | |||
| 44 | /** | ||
| 45 | * Get tree node. | ||
| 46 | * | ||
| 47 | * @return NodeInterface|PrototypeNodeInterface | ||
| 48 | */ | ||
| 49 | public function getNode() | ||
| 53 | } | ||
| 54 |