GenerateFormCommand::configure()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 12
rs 9.4285
cc 1
eloc 8
nc 1
nop 0
1
<?php
2
/**
3
 * Sake
4
 *
5
 * @link      http://github.com/sandrokeil/CodeGenerator for the canonical source repository
6
 * @copyright Copyright (c) 2014 Sandro Keil
7
 * @license   http://github.com/sandrokeil/CodeGenerator/blob/master/LICENSE.txt New BSD License
8
 */
9
10
namespace Sake\CodeGenerator\Doctrine\ORM\Tools\Console\Command;
11
12
use Sake\CodeGenerator\Code\Generator\FormGenerator;
13
14
/**
15
 * Generate form command
16
 *
17
 * Generates zend form
18
 */
19
class GenerateFormCommand extends AbstractCommand
20
{
21
    /**
22
     * {@inheritdoc}
23
     */
24
    protected function configure()
25
    {
26
        parent::configure();
27
28
        $this->setName('zf:generate-form')
29
            ->setDescription('Generates zend framework 2 form via doctrine')
30
            ->setHelp(
31
<<<EOT
0 ignored issues
show
Coding Style introduced by
It seems like the identation of this line is off (expected at least 8 spaces, but found 0).
Loading history...
32
Generates zend framework 2 form via doctrine
33
EOT
34
            );
35
    }
36
37
    /**
38
     * Returns form generator
39
     *
40
     * @return FormGenerator
41
     */
42
    protected function getGenerator()
43
    {
44
        return new FormGenerator();
45
    }
46
}
47