Passed
Push — main ( 4f667e...0f6bfa )
by Pouya
02:05
created

Cache::__construct()   A

Complexity

Conditions 3
Paths 4

Size

Total Lines 5
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 5
rs 10
cc 3
nc 4
nop 1
1
<?php
2
3
4
namespace Appino\Blockchain\Objects;
5
6
7
class Cache{
8
9
    public $receiveAccount;
10
    public $changeAccount;
11
12
    public function __construct($params){
13
        if(array_key_exists('receiveAccount',$params))
14
            $this->receiveAccount = data_get($params,'receiveAccount');
15
        if(array_key_exists('changeAccount',$params))
16
            $this->changeAccount = new Cache(data_get($params,'changeAccount'));
17
    }
18
19
}
20