Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

39 rindas
957B

  1. <?php
  2. namespace Lc\CaracoleBundle\Repository\Section;
  3. use Lc\CaracoleBundle\Repository\SectionStoreTrait;
  4. use Lc\CaracoleBundle\Solver\Section\OpeningSolver;
  5. use Lc\SovBundle\Repository\AbstractStore;
  6. use Lc\SovBundle\Repository\RepositoryQueryInterface;
  7. class OpeningStore extends AbstractStore
  8. {
  9. use SectionStoreTrait;
  10. protected OpeningRepositoryQuery $query;
  11. public function __construct(OpeningRepositoryQuery $query)
  12. {
  13. $this->query = $query;
  14. }
  15. public function orderByDefault(RepositoryQueryInterface $query): RepositoryQueryInterface
  16. {
  17. $query->orderBy('day');
  18. return $query;
  19. }
  20. public function filtersDefault(RepositoryQueryInterface $query): RepositoryQueryInterface
  21. {
  22. $query->filterBySection($this->section);
  23. return $query;
  24. }
  25. public function relationsDefault(RepositoryQueryInterface $query): RepositoryQueryInterface
  26. {
  27. return $query;
  28. }
  29. }