Move CachetHq to folder

This commit is contained in:
James Brooks
2014-12-20 21:16:00 +00:00
parent 63ff951d88
commit a982edeb63
21 changed files with 0 additions and 0 deletions
@@ -0,0 +1,20 @@
<?php
namespace CachetHQ\Cachet\Transformers;
use MetricPoint;
use League\Fractal\TransformerAbstract;
class MetricPointTransformer extends TransformerAbstract {
public function transform(MetricPoint $metricPoint) {
return [
'id' => (int) $metricPoint->id,
'metric_id' => $metricPoint->metric_id,
'value' => $metricPoint->value,
'created_at' => $metricPoint->created_at->timestamp,
'updated_at' => $metricPoint->updated_at->timestamp,
];
}
}