Input   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 3
Bugs 1 Features 1
Metric Value
wmc 3
c 3
b 1
f 1
lcom 0
cbo 2
dl 0
loc 20
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 2
A tagName() 0 4 1
1
<?php
2
3
namespace hemio\html;
4
5
/**
6
 * The <code>input</code> element represents a typed data field, usually with a form control
7
 * to allow the user to edit the data.
8
 *
9
 * @since 1.0
10
 * @url http://www.w3.org/TR/html5/forms.html#the-input-element
11
 */
12
class Input extends Abstract_\ElementEmpty implements Interface_\Submittable
13
{
14
15
    use Trait_\Submittable;
16
17
    /**
18
     *
19
     * @param string $type
20
     */
21
    public function __construct($type = null)
22
    {
23
        if ($type !== null)
24
            $this->setAttribute('type', $type);
25
    }
26
27
    public static function tagName()
28
    {
29
        return 'input';
30
    }
31
}
32