Cachet/src/Models/MetricPoint.php

26 lines
570 B
PHP
Raw Normal View History

2014-11-25 11:19:20 +00:00
<?php
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()
{
return $this->belongsTo('CachetHQ\Cachet\Models\Metric', 'id', 'metric_id');
2014-12-01 08:53:32 +00:00
}
}