Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
|
- <?php
-
- namespace domain\Distribution\PointSaleDistribution;
-
- use domain\Distribution\Distribution\Distribution;
- use domain\PointSale\PointSale\PointSale;
- use domain\_\AbstractRepositoryQuery;
-
- class PointSaleDistributionRepositoryQuery extends AbstractRepositoryQuery
- {
- protected PointSaleDistributionDefinition $definition;
-
- public function loadDependencies(): void
- {
- $this->loadDefinition(PointSaleDistributionDefinition::class);
- }
-
- public function filterByDistribution(Distribution $distribution): self
- {
- $this->andWhere(['id_distribution' => $distribution->id]);
-
- return $this;
- }
-
- public function filterByPointSale(PointSale $pointSale): self
- {
- $this->andWhere(['id_point_sale' => $pointSale->id]);
-
- return $this;
- }
- }
|