Info::getBankCode()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
4
namespace Sco\Bankcard;
5
6
use Sco\Bankcard\Contracts\Info as InfoContract;
7
use Sco\Bankcard\Traits\HasAttributes;
8
9
class Info implements InfoContract
10
{
11
    use HasAttributes;
12
13
    public function __construct(array $attributes)
14
    {
15
        $this->attributes = $attributes;
16
    }
17
18
    public function getBankInfo()
19
    {
20
        return $this->getAttributes();
21
    }
22
23
    public function getBankCode()
24
    {
25
        return $this->getAttribute('bankCode');
26
    }
27
28
    public function getBankName()
29
    {
30
        return $this->getAttribute('bankName');
31
    }
32
33
    public function getBankIcon()
34
    {
35
        return $this->getAttribute('bankIcon');
36
    }
37
38
    public function getCardType()
39
    {
40
        return $this->getAttribute('cardType');
41
    }
42
43
    public function getCardTypeName()
44
    {
45
        return $this->getAttribute('cardTypeName');
46
    }
47
}
48