EditBuilder::getYamlKey()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
dl 4
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Admingenerator\GeneratorBundle\Builder\Admin;
4
5
/**
6
 * This builder generates php for edit actions
7
 *
8
 * @author cedric Lombardot
9
 * @author Piotr Gołębiewski <[email protected]>
10
 * @author Stéphane Escandell <[email protected]>
11
 */
12 View Code Duplication
class EditBuilder extends BaseBuilder
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
13
{
14
    /**
15
     * (non-PHPdoc)
16
     * @see Admingenerator\GeneratorBundle\Builder.BaseBuilder::getYamlKey()
17
     */
18
    public function getYamlKey()
19
    {
20
        return 'edit';
21
    }
22
23
    /**
24
     * Retrieve the FQCN formType used by this builder
25
     *
26
     * @return string
27
     */
28
    public function getFormType()
29
    {
30
        return sprintf(
31
            '%s%s\\Form\Type\\%s\\EditType',
32
            $this->getVariable('namespace_prefix') ? $this->getVariable('namespace_prefix') . '\\' : '',
33
            $this->getVariable('bundle_name'),
34
            $this->getBaseGeneratorName()
35
        );
36
    }
37
}
38