1 | <?php |
||
14 | class Configuration implements ConfigurationInterface |
||
15 | { |
||
16 | /** |
||
17 | * {@inheritdoc} |
||
18 | */ |
||
19 | 5 | public function getConfigTreeBuilder() |
|
20 | { |
||
21 | 5 | $treeBuilder = new TreeBuilder('finite_finite'); |
|
22 | 5 | if (method_exists($treeBuilder, 'root')) { |
|
23 | 4 | $rootNode = $treeBuilder->root('finite_finite'); |
|
24 | } else { |
||
25 | 1 | $rootNode = $treeBuilder->getRootNode(); |
|
26 | } |
||
27 | 5 | $rootProto = $rootNode->useAttributeAsKey('name')->prototype('array')->children(); |
|
|
|||
28 | |||
29 | $rootProto |
||
30 | 5 | ->scalarNode('class')->isRequired()->end() |
|
31 | 5 | ->scalarNode('graph')->defaultValue('default')->end() |
|
32 | 5 | ->scalarNode('property_path')->defaultValue('finiteState')->end(); |
|
33 | |||
34 | 5 | $this->addStateSection($rootProto); |
|
35 | 5 | $this->addTransitionSection($rootProto); |
|
36 | 5 | $this->addCallbackSection($rootProto); |
|
37 | 5 | $rootProto->end()->end(); |
|
38 | |||
39 | 5 | return $treeBuilder; |
|
40 | } |
||
41 | |||
42 | /** |
||
43 | * @param NodeBuilder $rootProto |
||
44 | */ |
||
45 | 5 | protected function addStateSection(NodeBuilder $rootProto) |
|
62 | |||
63 | /** |
||
64 | * @param NodeBuilder $rootProto |
||
65 | */ |
||
66 | 5 | protected function addTransitionSection(NodeBuilder $rootProto) |
|
86 | |||
87 | /** |
||
88 | * @param NodeBuilder $rootProto |
||
89 | */ |
||
90 | 5 | protected function addCallbackSection(NodeBuilder $rootProto) |
|
97 | |||
98 | /** |
||
99 | * @param NodeBuilder $callbacks |
||
100 | * @param string $type |
||
101 | */ |
||
102 | 5 | private function addSubCallbackSection(NodeBuilder $callbacks, $type) |
|
118 | } |
||
119 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.