We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 16 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 18 | 15 | public function getDefinition() |
|
| 19 | { |
||
| 20 | 15 | $builder = new TreeBuilder(); |
|
| 21 | 15 | $node = $builder->root('_union_config'); |
|
| 22 | |||
| 23 | $node |
||
| 24 | 15 | ->children() |
|
| 25 | 15 | ->append($this->nameSection()) |
|
| 26 | 15 | ->arrayNode('types') |
|
| 27 | 15 | ->prototype('scalar') |
|
| 28 | 15 | ->info('One or more of object types.') |
|
| 29 | 15 | ->end() |
|
| 30 | 15 | ->isRequired() |
|
| 31 | 15 | ->requiresAtLeastOneElement() |
|
| 32 | 15 | ->end() |
|
| 33 | 15 | ->append($this->resolveTypeSection()) |
|
| 34 | 15 | ->append($this->descriptionSection()) |
|
| 35 | 15 | ->end(); |
|
| 36 | |||
| 37 | 15 | return $node; |
|
| 38 | } |
||
| 39 | } |
||
| 40 |