BinBank   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 33
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace DevinPearson\BinList;
4
5
/**
6
 *  BinBank class.
7
 *
8
 *  The card issuers bank object
9
 *  provides the card issuers contact details
10
 *
11
 * @author Devin Pearson
12
 */
13
class BinBank
14
{
15
    /**
16
     * @var string Name of the bank who issued the card number
17
     */
18
    public $name = '';
19
    /**
20
     * @var string the banks web address
21
     */
22
    public $url = '';
23
    /**
24
     * @var string Card issuers contact number
25
     */
26
    public $phone = '';
27
    /**
28
     * @var string the city the card issuer is located in
29
     */
30
    public $city = '';
31
32
    /**
33
     * BinBank constructor.
34
     *
35
     * @param string $name
36
     * @param string $url
37
     * @param string $phone
38
     * @param string $city
39
     */
40 3
    public function __construct($name, $url, $phone, $city)
41
    {
42 3
        $this->name = $name;
43 3
        $this->url = $url;
44 3
        $this->phone = $phone;
45 3
        $this->city = $city;
46 3
    }
47
}
48