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

CustomBlockFixture::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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
                ->scalarNode('link')->end()
29
        ;
30
    }
31
}
32