Conditions | 3 |
Paths | 4 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | public function __construct($metric) |
||
22 | { |
||
23 | $this->metric = $metric->metric; |
||
24 | $this->datapoints = $metric->datapoints; |
||
25 | if (property_exists($metric, 'last_data_at')) { |
||
26 | $this->last_data_at = $metric->last_data_at; |
||
27 | } |
||
28 | $this->metadata = $metric->metadata; |
||
29 | if (property_exists($metric, '_links')) { |
||
30 | $this->links = $metric->_links; |
||
31 | } |
||
34 |