Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | protected function configureResourceNode(ArrayNodeDefinition $resourceNode): void |
||
16 | { |
||
17 | $node = $resourceNode->children(); |
||
18 | |||
19 | $node->scalarNode('code')->cannotBeEmpty(); |
||
20 | $node->booleanNode('enabled'); |
||
21 | $node->arrayNode('channels')->scalarPrototype(); |
||
22 | $node->arrayNode('categories')->scalarPrototype(); |
||
23 | $node->scalarNode('title')->cannotBeEmpty(); |
||
24 | $node->scalarNode('content')->cannotBeEmpty(); |
||
25 | $node->scalarNode('slug')->cannotBeEmpty(); |
||
26 | $node->scalarNode('image'); |
||
27 | } |
||
37 |