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.

22 line
586B

  1. <?php
  2. namespace domain\Subscription\ProductSubscription;
  3. use domain\Subscription\Subscription\Subscription;
  4. use domain\_\AbstractRepositoryQuery;
  5. class ProductSubscriptionRepositoryQuery extends AbstractRepositoryQuery
  6. {
  7. protected ProductSubscriptionDefinition $definition;
  8. public function loadDependencies(): void
  9. {
  10. $this->loadDefinition(ProductSubscriptionDefinition::class);
  11. }
  12. public function filterBySubscription(Subscription $subscription): self
  13. {
  14. $this->andWhere(['id_subscription' => $subscription->id]);
  15. return $this;
  16. }
  17. }