Completed
Branch dev-master (5a9550)
by Derek Stephen
02:00
created

Radio   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 18
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getTag() 0 4 1
A init() 0 6 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
}