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

Cache   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 7
c 1
b 0
f 0
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 3
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