|
1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
-
- namespace Lc\CaracoleBundle\Repository\Section;
-
- use Lc\CaracoleBundle\Repository\SectionStoreTrait;
- use Lc\CaracoleBundle\Solver\Section\OpeningSolver;
- use Lc\SovBundle\Repository\AbstractStore;
- use Lc\SovBundle\Repository\RepositoryQueryInterface;
-
- class OpeningStore extends AbstractStore
- {
- use SectionStoreTrait;
-
- protected OpeningRepositoryQuery $query;
-
- public function __construct(OpeningRepositoryQuery $query)
- {
- $this->query = $query;
- }
-
- public function orderByDefault(RepositoryQueryInterface $query): RepositoryQueryInterface
- {
- $query->orderBy('day');
- return $query;
- }
-
- public function filtersDefault(RepositoryQueryInterface $query): RepositoryQueryInterface
- {
- $query->filterBySection($this->section);
- return $query;
- }
-
- public function relationsDefault(RepositoryQueryInterface $query): RepositoryQueryInterface
- {
- return $query;
- }
-
- }
|