appino /
Blockchain
| 1 | <?php |
||
| 2 | |||
| 3 | |||
| 4 | namespace Appino\Blockchain\Objects; |
||
| 5 | |||
| 6 | |||
| 7 | class Rate{ |
||
| 8 | |||
| 9 | public $currency; |
||
| 10 | public $m15; |
||
| 11 | public $last; |
||
| 12 | public $buy; |
||
| 13 | public $sell; |
||
| 14 | |||
| 15 | public function __construct($currency, $params){ |
||
| 16 | if(is_null($params)) |
||
| 17 | return; |
||
| 18 | $this->currency = $currency; |
||
| 19 | $this->m15 = data_get($params,'15m'); |
||
| 20 | $this->last = data_get($params,'last'); |
||
| 21 | $this->buy = data_get($params,'buy'); |
||
| 22 | $this->sell = data_get($params,'sell'); |
||
| 23 | $this->symbol = data_get($params,'symbol'); |
||
|
0 ignored issues
–
show
Bug
Best Practice
introduced
by
Loading history...
|
|||
| 24 | } |
||
| 25 | |||
| 26 | } |
||
| 27 |