Completed
Push — master ( 3182b0...115a8b )
by Arkadiusz
11s
created

StaticContentFixture::configureResourceNode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 10
rs 9.4285
cc 1
eloc 7
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 StaticContentFixture extends AbstractResourceFixture
9
{
10
    /**
11
     * {@inheritdoc}
12
     */
13
    public function getName()
14
    {
15
        return 'lakion_sylius_cms_static_content';
16
    }
17
18
    /**
19
     * {@inheritdoc}
20
     */
21
    protected function configureResourceNode(ArrayNodeDefinition $resourceNode)
22
    {
23
        $resourceNode
24
            ->children()
25
                ->scalarNode('title')->end()
26
                ->scalarNode('name')->end()
27
                ->scalarNode('body')->end()
28
                ->booleanNode('publishable')->end()
29
        ;
30
    }
31
}
32