Completed
Push — feature/middleware ( a35412...bb427e )
by Derek Stephen
03:50
created

DragonForm   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 10 1
1
<?php
2
3
namespace BoneMvc\Module\Dragon\Form;
4
5
use BoneMvc\Module\Dragon\Entity\Dragon;
6
use Del\Form\AbstractForm;
7
use Del\Form\Field\Submit;
8
use Del\Form\Field\Text;
9
10
class DragonForm extends AbstractForm
11
{
12
    public function init()
13
    {
14
        $name = new Text('name');
15
        $name->setLabel('Name');
16
        $name->setRequired(true);
17
        $this->addField($name);
18
19
        $submit = new Submit('submit');
20
        $this->addField($submit);
21
    }
22
}
23