BinCountry   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 51
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 15
dl 0
loc 51
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
1
<?php
2
3
namespace DevinPearson\BinList;
4
5
/**
6
 *  BinCountry class.
7
 *
8
 *  The card issuers country object
9
 *  provides the card issuers country location details
10
 *
11
 * @author Devin Pearson
12
 */
13
class BinCountry
14
{
15
    /**
16
     * @var string the country numeric code
17
     */
18
    public $numeric = '';
19
    /**
20
     * @var string the 2 char country code
21
     */
22
    public $alpha2 = '';
23
    /**
24
     * @var string Country name
25
     */
26
    public $name = '';
27
    /**
28
     * @var string the country emoji flag
29
     */
30
    public $emoji = '';
31
    /**
32
     * @var string the currency code the card is denominated in
33
     */
34
    public $currency = '';
35
    /**
36
     * @var int the latitude of the issuing country
37
     */
38
    public $latitude = '';
39
    /**
40
     * @var int the longitude of the issuing country
41
     */
42
    public $longitude = '';
43
44
    /**
45
     * BinCountry constructor.
46
     *
47
     * @param string $numeric
48
     * @param string $alpha2
49
     * @param string $name
50
     * @param string $emoji
51
     * @param string $currency
52
     * @param int    $latitude
53
     * @param int    $longitude
54
     */
55 3
    public function __construct($numeric, $alpha2, $name, $emoji, $currency, $latitude, $longitude)
56
    {
57 3
        $this->numeric = $numeric;
58 3
        $this->alpha2 = $alpha2;
59 3
        $this->name = $name;
60 3
        $this->emoji = $emoji;
61 3
        $this->currency = $currency;
62 3
        $this->latitude = $latitude;
63 3
        $this->longitude = $longitude;
64 3
    }
65
}
66