This commit is contained in:
Graham Campbell
2014-12-30 18:19:22 +00:00
parent df101a27c2
commit 509f582539
36 changed files with 143 additions and 111 deletions
+3
View File
@@ -16,6 +16,7 @@ class Metric extends Eloquent implements \Dingo\Api\Transformer\TransformableInt
/**
* Metrics contain many metric points.
*
* @return Illuminate\Database\Eloquent\Builder
*/
public function points()
@@ -25,6 +26,7 @@ class Metric extends Eloquent implements \Dingo\Api\Transformer\TransformableInt
/**
* Determines whether a chart should be shown.
*
* @return bool
*/
public function getShouldDisplayAttribute()
@@ -34,6 +36,7 @@ class Metric extends Eloquent implements \Dingo\Api\Transformer\TransformableInt
/**
* Get the transformer instance.
*
* @return CachetHQ\Cachet\Transformers\MetricTransformer
*/
public function getTransformer()