Soyhuce/l5-repository

View on GitHub
src/Prettus/Repository/Transformer/ModelTransformer.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php namespace Prettus\Repository\Transformer;

use League\Fractal\TransformerAbstract;
use Prettus\Repository\Contracts\Transformable;

/**
 * Class ModelTransformer
 *
 * @package Prettus\Repository\Transformer
 */
class ModelTransformer extends TransformerAbstract
{
    public function transform(Transformable $model)
    {
        return $model->transform();
    }
}