Cachet/app/models/MetricPoint.php

17 lines
323 B
PHP
Raw Normal View History

2014-11-25 11:19:20 +00:00
<?php
2015-01-01 12:23:17 +00:00
use Illuminate\Database\Eloquent\Model;
class MetricPoint extends Model
2014-12-20 21:20:17 +00:00
{
2014-12-01 08:53:32 +00:00
/**
* A metric point belongs to a metric unit.
2014-12-30 18:19:22 +00:00
*
2014-12-01 08:53:32 +00:00
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
2014-12-20 21:20:17 +00:00
public function metric()
{
2014-12-01 08:53:32 +00:00
return $this->belongsTo('Metric', 'id', 'metric_id');
}
}