Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
45 | public function __construct(array $data) |
||
46 | { |
||
47 | $this->from = $data['query']['from']; |
||
48 | $this->to = $data['query']['to']; |
||
49 | $this->amount = $data['query']['amount']; |
||
50 | $this->quote = $data['info']['quote']; |
||
51 | $this->result = $data['result']; |
||
52 | $this->timestamp = new CarbonImmutable($data['info']['timestamp']); |
||
53 | $this->date = isset($data['date']) ? new CarbonImmutable($data['date']) : null; |
||
54 | } |
||
112 |