You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 satır
929B

  1. <?php
  2. namespace Lc\CaracoleBundle\Repository\Setting;
  3. use Lc\CaracoleBundle\Repository\SectionStoreTrait;
  4. use Lc\CaracoleBundle\Repository\AbstractStore;
  5. use Lc\SovBundle\Repository\RepositoryQueryInterface;
  6. class SectionSettingStore extends AbstractStore
  7. {
  8. use SectionStoreTrait;
  9. protected SectionSettingRepositoryQuery $query;
  10. public function __construct(SectionSettingRepositoryQuery $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->filterBySection($this->section);
  22. return $query;
  23. }
  24. public function relationsDefault(RepositoryQueryInterface $query): RepositoryQueryInterface
  25. {
  26. return $query;
  27. }
  28. }