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.

SiteStore.php 874B

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace Lc\SovBundle\Repository\Site;
  3. use Lc\SovBundle\Repository\AbstractStore;
  4. use Lc\SovBundle\Repository\RepositoryQueryInterface;
  5. class SiteStore extends AbstractStore implements SiteStoreInterface
  6. {
  7. protected SiteRepositoryQueryInterface $query;
  8. public function __construct(SiteRepositoryQueryInterface $query)
  9. {
  10. $this->query = $query;
  11. }
  12. public function orderByDefault(RepositoryQueryInterface $query): RepositoryQueryInterface
  13. {
  14. return $query;
  15. }
  16. public function filtersDefault(RepositoryQueryInterface $query): RepositoryQueryInterface
  17. {
  18. return $query;
  19. }
  20. public function relationsDefault(RepositoryQueryInterface $query): RepositoryQueryInterface
  21. {
  22. return $query;
  23. }
  24. public function getOneDefault()
  25. {
  26. return $this->getOneByDevAlias('default');
  27. }
  28. }