Move code to src folder

This commit is contained in:
Graham Campbell
2015-01-01 14:10:00 +00:00
parent 25af776e46
commit bf52b14bee
22 changed files with 1 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
<?php
namespace CachetHQ\Cachet\Transformers;
use League\Fractal\TransformerAbstract;
use MetricPoint;
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,
];
}
}