Passed
Push — master ( 43120b...c469e9 )
by
unknown
45s queued 10s
created

CountryList   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 5
dl 0
loc 20
rs 10
c 1
b 0
f 1
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A US() 0 3 1
A BR() 0 3 1
A ES() 0 3 1
A FR() 0 3 1
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
    public static function FR() : Country
30
    {
31
        return new Country('France', 'FR', 'FRA');
32
    }
33
}
34