1 | <?php |
||
27 | class StrategyNodeDefinition extends ArrayNodeDefinition implements |
||
28 | ParentNodeDefinitionInterface |
||
|
|||
29 | { |
||
30 | protected $nodeBuilder; |
||
31 | protected $children; |
||
32 | |||
33 | /** |
||
34 | * @var StrategyFactory |
||
35 | */ |
||
36 | protected $strategyFactory; |
||
37 | |||
38 | 2 | public function __construct($name, NodeParentInterface $parent = null) |
|
42 | |||
43 | /** |
||
44 | * Returns a node builder to be used to add children and prototype |
||
45 | * |
||
46 | * @return NodeBuilder The node builder |
||
47 | */ |
||
48 | 2 | protected function getNodeBuilder() |
|
56 | |||
57 | /** |
||
58 | * (non-PHPdoc) |
||
59 | * @see Symfony\Component\Config\Definition\Builder.NodeDefinition::createNode() |
||
60 | */ |
||
61 | 2 | protected function createNode() |
|
85 | |||
86 | /** |
||
87 | * (non-PHPdoc) |
||
88 | * @see Symfony\Component\Config\Definition\Builder.ParentNodeDefinitionInterface::children() |
||
89 | */ |
||
90 | 2 | public function children() |
|
94 | |||
95 | /** |
||
96 | * (non-PHPdoc) |
||
97 | * @see Symfony\Component\Config\Definition\Builder.ParentNodeDefinitionInterface::append() |
||
98 | */ |
||
99 | 2 | public function append(NodeDefinition $node) |
|
105 | |||
106 | /** |
||
107 | * (non-PHPdoc) |
||
108 | * @see Symfony\Component\Config\Definition\Builder.ParentNodeDefinitionInterface::setBuilder() |
||
109 | */ |
||
110 | 2 | public function setBuilder(NodeBuilder $builder) |
|
114 | |||
115 | /** |
||
116 | * Set StrategyFactory |
||
117 | * |
||
118 | * @param StrategyFactory|null $factory |
||
119 | * @return StrategyNodeDefinition |
||
120 | */ |
||
121 | 2 | public function setStrategyFactory($factory) |
|
127 | } |
||
128 |