Email::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 2
dl 0
loc 6
ccs 0
cts 5
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
namespace Rocket\UI\Forms\Fields;
3
4
/**
5
 * Manage email fields
6
 */
7
8
/**
9
 * Password text field
10
 *
11
 * @author Stéphane Goetz
12
 */
13
class Email extends Field
14
{
15
    /**
16
     * Overrides the type
17
     * @param string $id
18
     * @param array $data
19
     */
20
    public function __construct($id, $data = [])
21
    {
22
        $this->type = 'email';
23
24
        parent::__construct($id, $data);
25
    }
26
}
27