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

Moo_EditableFieldCountryDropdown::getIcon()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
/**
4
 * Moo_EditableFieldCountryDropdown is an object representing country dropdown field created by CMS admin.
5
 *
6
 * @package editablefield
7
 *
8
 * @author  Mohamed Alsharaf <[email protected]>
9
 */
10
class Moo_EditableFieldCountryDropdown extends Moo_EditableField
11
{
12
    private static $singular_name = 'Country Dropdown';
13
    private static $plural_name   = 'Country Dropdowns';
14
15 1
    protected function initFormField()
16
    {
17 1
        return new CountryDropdownField($this->Name, $this->Title);
18
    }
19
20 1
    public function getIcon()
21
    {
22 1
        return 'editablefield/images/formfields/editablefielddropdown.png';
23
    }
24
}
25