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.

FeatureProducerRepositoryQuery.php 525B

12345678910111213141516171819202122
  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. }