Completed
Push — master ( eaf16e...6f8e07 )
by Mohamed
11:01
created

Moo_EditableFieldEmail   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A initFormField() 0 4 1
1
<?php
2
3
/**
4
 * Moo_EditableFieldEmail is an object representing email field created by CMS admin.
5
 *
6
 * @package editablefield
7
 *
8
 * @author  Mohamed Alsharaf <[email protected]>
9
 */
10
class Moo_EditableFieldEmail extends Moo_EditableField
11
{
12
    private static $singular_name = 'Email Field';
13
    private static $plural_name   = 'Email Fields';
14
15 1
    protected function initFormField()
16
    {
17 1
        return new EmailField($this->Name, $this->Title);
18
    }
19
}
20