Passed
Push — master ( 9dcb8e...3157a7 )
by
unknown
44s queued 11s
created

CountryList::ES()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Talentify\ValueObject\Geography;
6
7
use Talentify\ValueObject\Geography\Address\Country;
8
9
/**
10
 * @see https://en.wikipedia.org/wiki/ISO_3166-1#Current_codes
11
 */
12
class CountryList
13
{
14
    public static function BR() : Country
15
    {
16
        return new Country('Brazil', 'BR', 'BRA');
17
    }
18
19
    public static function US() : Country
20
    {
21
        return new Country('United States Of America', 'US', 'USA');
22
    }
23
24
    public static function ES() : Country
25
    {
26
        return new Country('Spain', 'ES', 'ESP');
27
    }
28
}
29