Completed
Pull Request — master (#18)
by Kamil
02:30
created

CustomBlockFixture::configureResourceNode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 9
rs 9.6666
cc 1
eloc 6
nc 1
nop 1
1
<?php
2
3
namespace Lakion\SyliusCmsBundle\Fixture;
4
5
use Sylius\Bundle\CoreBundle\Fixture\AbstractResourceFixture;
6
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
7
8
final class CustomBlockFixture extends AbstractResourceFixture
9
{
10
    /**
11
     * {@inheritdoc}
12
     */
13
    public function getName()
14
    {
15
        return 'lakion_sylius_cms_custom_block';
16
    }
17
18
    /**
19
     * {@inheritdoc}
20
     */
21
    protected function configureResourceNode(ArrayNodeDefinition $resourceNode)
22
    {
23
        $resourceNode
24
            ->children()
25
                ->scalarNode('name')->end()
26
                ->scalarNode('title')->end()
27
                ->scalarNode('body')->end()
28
        ;
29
    }
30
}
31