您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

36 行
879B

  1. <?php
  2. namespace Lc\CaracoleBundle\Repository\Merchant;
  3. use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
  4. use Lc\SovBundle\Repository\AbstractStore;
  5. use Lc\SovBundle\Repository\RepositoryQueryInterface;
  6. class MerchantStore extends AbstractStore
  7. {
  8. protected MerchantRepositoryQuery $query;
  9. public function __construct(MerchantRepositoryQuery $query)
  10. {
  11. $this->query = $query;
  12. }
  13. public function orderByDefault(RepositoryQueryInterface $query): RepositoryQueryInterface
  14. {
  15. $query->orderBy('id');
  16. return $query;
  17. }
  18. public function filtersDefault(RepositoryQueryInterface $query): RepositoryQueryInterface
  19. {
  20. $query->filterIsOnlineAndOffline();
  21. return $query;
  22. }
  23. public function relationsDefault(RepositoryQueryInterface $query): RepositoryQueryInterface
  24. {
  25. return $query;
  26. }
  27. }