TopicCriteria.php 581 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace App\Repositories\Criteria\Exam;
  3. use Prettus\Repository\Contracts\CriteriaInterface;
  4. use Prettus\Repository\Contracts\RepositoryInterface;
  5. /**
  6. * Class TopicCriteria.
  7. *
  8. * @package namespace App\Repositories\Criteria\Exam;
  9. */
  10. class TopicCriteria implements CriteriaInterface
  11. {
  12. /**
  13. * Apply criteria in query repository
  14. *
  15. * @param string $model
  16. * @param RepositoryInterface $repository
  17. *
  18. * @return mixed
  19. */
  20. public function apply($model, RepositoryInterface $repository)
  21. {
  22. return $model;
  23. }
  24. }