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

EmailAddress   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 9
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 6 1
1
<?php
2
/**
3
 * User: delboy1978uk
4
 * Date: 04/12/2016
5
 * Time: 17:24
6
 */
7
8
namespace Del\Form\Field\Text;
9
10
use Del\Form\Field\Text;
11
use Del\Form\Validator\Adapter\ValidatorAdapterZf;
12
use Zend\Validator\EmailAddress as EmailValidator;
13
14
class EmailAddress extends Text
15
{
16 1
    public function init()
17
    {
18 1
        parent::init();
19 1
        $emailAddressValidator = new ValidatorAdapterZf(new EmailValidator());
20 1
        $this->addValidator($emailAddressValidator);
21
    }
22
}