2014-11-25 11:19:20 +00:00
|
|
|
<?php
|
|
|
|
|
2015-01-02 00:18:19 +00:00
|
|
|
namespace CachetHQ\Cachet\Models;
|
|
|
|
|
2015-01-01 12:23:17 +00:00
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
2015-01-02 12:02:04 +00:00
|
|
|
/**
|
2015-01-02 12:07:51 +00:00
|
|
|
* @property int $id
|
|
|
|
* @property int $metric_id
|
|
|
|
* @property int $value
|
|
|
|
* @property Carbon\Carbon $created_at
|
|
|
|
* @property Carbon\Carbon $updated_at
|
2015-01-02 12:02:04 +00:00
|
|
|
*/
|
2015-01-01 12:23:17 +00:00
|
|
|
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()
|
|
|
|
{
|
2015-01-02 00:18:19 +00:00
|
|
|
return $this->belongsTo('CachetHQ\Cachet\Models\Metric', 'id', 'metric_id');
|
2014-12-01 08:53:32 +00:00
|
|
|
}
|
2014-11-27 22:08:28 +00:00
|
|
|
}
|