Completed
Push — master ( 7b285b...480624 )
by Rigel Kent
04:14
created

Card   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 16
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
3
namespace Luigel\Paymongo\Models;
4
5
class Card {
6
    public $brand;
7
    public $country;
8
    public $exp_month;
9
    public $exp_year;
10
    public $last4;
11
12
    public function __construct($card)
13
    {
14
        $this->brand = $card['brand'];
15
        $this->country = $card['country'];
16
        $this->exp_month = $card['exp_month'];
17
        $this->exp_year = $card['exp_year'];
18
        $this->last4 = $card['last4'];
19
    }
20
}
21