PaymentSource::__construct()   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
eloc 2
dl 0
loc 4
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 PaymentSource
6
{
7
    public $id;
8
    public $type;
9
10
    public function __construct($source)
11
    {
12
        $this->id = $source['id'];
13
        $this->type = $source['type'];
14
    }
15
}
16