BinResult::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 6
nc 1
nop 6
dl 0
loc 8
ccs 7
cts 7
cp 1
crap 1
rs 10
c 0
b 0
f 0
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