NoticePresenter.php 552 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace App\Repositories\Presenters\News;
  3. use App\Repositories\Presenters\BasePresenter;
  4. use App\Repositories\Transformers\News\NoticeTransformer;
  5. use Prettus\Repository\Presenter\FractalPresenter;
  6. /**
  7. * Class NoticePresenter.
  8. *
  9. * @package namespace App\Repositories\Presenters\News;
  10. */
  11. class NoticePresenter extends BasePresenter
  12. {
  13. /**
  14. * Transformer
  15. *
  16. * @return \League\Fractal\TransformerAbstract
  17. */
  18. public function getTransformer($type = 'lists')
  19. {
  20. return new NoticeTransformer($type);
  21. }
  22. }