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.

RotatingProductRepositoryQuery.php 554B

12345678910111213141516171819202122
  1. <?php
  2. namespace domain\Product\RotatingProduct;
  3. use domain\_\AbstractRepositoryQuery;
  4. use domain\Product\Rotating\Rotating;
  5. class RotatingProductRepositoryQuery extends AbstractRepositoryQuery
  6. {
  7. protected RotatingProductDefinition $definition;
  8. public function loadDependencies(): void
  9. {
  10. $this->loadDefinition(RotatingProductDefinition::class);
  11. }
  12. public function filterByRotating(Rotating $rotating): self
  13. {
  14. $this->andWhere(['rotating_product.id_rotating' => $rotating->getId()]);
  15. return $this;
  16. }
  17. }