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

CheckBox   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
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 19
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 CheckBox extends FieldAbstract
13
{
14
    /**
15
     * @return string
16
     */
17 1
    public function getTag()
18
    {
19 1
        return 'input';
20
    }
21
22 1
    public function init()
23
    {
24 1
        $this->setAttribute('type', 'checkbox');
25 1
        $this->setAttribute('class', 'form-control');
26 1
        $this->setRenderer(new RadioRender());
27 1
    }
28
29
30
}