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

MerchantSettingStore.php 931B

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