TaskPresenter.php 486 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace App\Repositories\Presenters\Dianli;
  3. use App\Repositories\Transformers\Dianli\TaskTransformer;
  4. use Prettus\Repository\Presenter\FractalPresenter;
  5. /**
  6. * Class TaskPresenter.
  7. *
  8. * @package namespace App\Repositories\Presenters\Dianli;
  9. */
  10. class TaskPresenter extends FractalPresenter
  11. {
  12. /**
  13. * Transformer
  14. *
  15. * @return \League\Fractal\TransformerAbstract
  16. */
  17. public function getTransformer()
  18. {
  19. return new TaskTransformer();
  20. }
  21. }