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

40 行
1.0KB

  1. <?php
  2. namespace common\logic\Ticket\TicketMessage\Module;
  3. use common\logic\AbstractModule;
  4. use common\logic\Ticket\TicketMessage\Repository\TicketMessageRepository;
  5. use common\logic\Ticket\TicketMessage\Service\TicketMessageBuilder;
  6. use common\logic\Ticket\TicketMessage\Service\TicketMessageDefinition;
  7. /**
  8. * @mixin TicketMessageDefinition
  9. * @mixin TicketMessageRepository
  10. * @mixin TicketMessageBuilder
  11. */
  12. class TicketMessageModule extends AbstractModule
  13. {
  14. public function getServices(): array
  15. {
  16. return [
  17. TicketMessageDefinition::class,
  18. TicketMessageRepository::class,
  19. TicketMessageBuilder::class
  20. ];
  21. }
  22. public function getDefinition(): TicketMessageDefinition
  23. {
  24. return TicketMessageDefinition::getInstance();
  25. }
  26. public function getRepository(): TicketMessageRepository
  27. {
  28. return TicketMessageRepository::getInstance();
  29. }
  30. public function getBuilder(): TicketMessageBuilder
  31. {
  32. return TicketMessageBuilder::getInstance();
  33. }
  34. }