Completed
Push — master ( 7150c8...077dd8 )
by Derek Stephen
9s
created

Radio::getTagType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * User: delboy1978uk
4
 * Date: 19/11/2016
5
 * Time: 21:37
6
 */
7
8
namespace Del\Form\Field;
9
10
use Del\Form\Renderer\Field\RadioRender;
11
12
class Radio extends FieldAbstract
13
{
14
15
    /**
16
     * @return string
17
     */
18 1
    public function getTag()
19
    {
20 1
        return 'input';
21
    }
22
23 1
    public function init()
24
    {
25 1
        $this->setAttribute('type', 'radio');
26 1
        $this->setAttribute('class', 'form-control');
27 1
        $this->setRenderer(new RadioRender());
28
    }
29
}