BinResult   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 13
dl 0
loc 45
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
3
namespace DevinPearson\BinList;
4
5
/**
6
 *  BinResult class.
7
 *
8
 *  The bin object
9
 *  provides the results of the bin search
10
 *
11
 * @author Devin Pearson
12
 */
13
class BinResult
14
{
15
    /**
16
     * @var string Name of the scheme provider visa, mastercard
17
     */
18
    public $scheme = '';
19
    /**
20
     * @var string debit or credit
21
     */
22
    public $type = '';
23
    /**
24
     * @var string Brand of card
25
     */
26
    public $brand = '';
27
    /**
28
     * @var bool whether the card is prepaid or not
29
     */
30
    public $prepaid = false;
31
    /**
32
     * @var BinCountry the country associated with the bin number
33
     */
34
    public $country;
35
    /**
36
     * @var BinBank the bank associated with the bin number
37
     */
38
    public $bank;
39
40
    /**
41
     * BinResult constructor.
42
     *
43
     * @param string     $scheme
44
     * @param string     $type
45
     * @param string     $brand
46
     * @param bool       $prepaid
47
     * @param BinCountry $country
48
     * @param BinBank    $bank
49
     */
50 3
    public function __construct($scheme, $type, $brand, $prepaid, BinCountry $country, BinBank $bank)
51
    {
52 3
        $this->scheme = $scheme;
53 3
        $this->type = $type;
54 3
        $this->brand = $brand;
55 3
        $this->prepaid = $prepaid;
56 3
        $this->country = $country;
57 3
        $this->bank = $bank;
58 3
    }
59
}
60