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 satır
525B

  1. <?php
  2. namespace domain\Feature\FeatureProducer;
  3. use domain\Feature\Feature\Feature;
  4. use domain\_\AbstractRepositoryQuery;
  5. class FeatureProducerRepositoryQuery extends AbstractRepositoryQuery
  6. {
  7. protected FeatureProducerDefinition $definition;
  8. public function loadDependencies(): void
  9. {
  10. $this->loadDefinition(FeatureProducerDefinition::class);
  11. }
  12. public function filterByFeature(Feature $feature): self
  13. {
  14. $this->andWhere(['id_feature' => $feature->id]);
  15. return $this;
  16. }
  17. }