Completed
Push — master ( 48ff0c...a157cb )
by wen
03:02
created

Email   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
4
namespace Sco\Admin\Form\Elements;
5
6
class Email extends Text
7
{
8
    protected $type = 'email';
9
10
    public function __construct($name, $title)
11
    {
12
        parent::__construct($name, $title);
13
14
        $this->addValidationRule('email');
15
    }
16
}
17