您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

29 行
580B

  1. <?php
  2. namespace domain\Feature\Feature;
  3. use domain\_\AbstractRepositoryQuery;
  4. class FeatureRepositoryQuery extends AbstractRepositoryQuery
  5. {
  6. protected FeatureDefinition $definition;
  7. public function loadDependencies(): void
  8. {
  9. $this->loadDefinition(FeatureDefinition::class);
  10. }
  11. public function filterByAlias(string $alias): self
  12. {
  13. $this->andWhere(['alias' => $alias]);
  14. return $this;
  15. }
  16. public function filterIsPaidFeature(): self
  17. {
  18. $this->andWhere(['is_paid_feature' => true]);
  19. return $this;
  20. }
  21. }