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

Card::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

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