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.

FeatureProducerRepositoryQuery.php 541B

12345678910111213141516171819202122
  1. <?php
  2. namespace common\logic\Feature\FeatureProducer;
  3. use common\logic\AbstractRepositoryQuery;
  4. use common\logic\Feature\Feature\Feature;
  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. }