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

Password::init()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
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\Text;
9
10
use Del\Form\Field\Text;
11
12
class Password extends Text
13
{
14 1
    public function init()
15
    {
16 1
        parent::init();
17 1
        $this->setAttribute('type', 'password');
18
    }
19
}