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

CheckBox::init()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 5
cts 5
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
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 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
}