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

SettingRepositoryQuery.php 439B

123456789101112131415161718192021
  1. <?php
  2. namespace common\logic\Setting;
  3. use common\logic\AbstractRepositoryQuery;
  4. class SettingRepositoryQuery extends AbstractRepositoryQuery
  5. {
  6. protected SettingDefinition $definition;
  7. public function loadDependencies(): void
  8. {
  9. $this->loadDefinition(SettingDefinition::class);
  10. }
  11. public function filterByName(string $name): self
  12. {
  13. $this->andWhere(['name' => $name]);
  14. return $this;
  15. }
  16. }