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