Nie możesz wybrać więcej, niż 25 tematów
Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
|
- <?php
-
- namespace domain\PointSale\SharedPointSale;
-
- use domain\_\AbstractRepositoryQuery;
- use domain\_\StatusInterface;
- use domain\Producer\Producer\Producer;
-
- class SharedPointSaleRepositoryQuery extends AbstractRepositoryQuery
- {
- protected SharedPointSaleDefinition $sharedPointSaleDefinition;
-
- public function loadDependencies(): void
- {
- $this->loadDefinition(SharedPointSaleDefinition::class);
- }
-
- public function filterIsStatusOnline()
- {
- $this->andWhere(['shared_point_sale.status' => StatusInterface::STATUS_ONLINE]);
- return $this;
- }
-
- public function filterByProducerOfPointSale(Producer $producer): self
- {
- $this->andWhere(['point_sale.id_producer' => $producer->id]);
- return $this;
- }
-
- public function filterByProducerWithSharing(Producer $producer): self
- {
- $this->andWhere(['id_producer_with_sharing' => $producer->id]);
- return $this;
- }
- }
|