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

21 行
449B

  1. <?php
  2. namespace domain\Ticket\Ticket;
  3. use domain\_\AbstractRepositoryQuery;
  4. class TicketRepositoryQuery extends AbstractRepositoryQuery
  5. {
  6. protected TicketDefinition $definition;
  7. public function loadDependencies(): void
  8. {
  9. $this->loadDefinition(TicketDefinition::class);
  10. }
  11. public function filterByStatusOpen(): self
  12. {
  13. $this->andWhere(['ticket.status' => Ticket::STATUS_OPEN]);
  14. return $this;
  15. }
  16. }