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

35 行
956B

  1. <?php
  2. namespace common\logic\Ticket\TicketMessage\Wrapper;
  3. use common\logic\AbstractContainer;
  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. class TicketMessageContainer extends AbstractContainer
  8. {
  9. public function getServices(): array
  10. {
  11. return [
  12. TicketMessageDefinition::class,
  13. TicketMessageRepository::class,
  14. TicketMessageBuilder::class
  15. ];
  16. }
  17. public function getDefinition(): TicketMessageDefinition
  18. {
  19. return TicketMessageDefinition::getInstance();
  20. }
  21. public function getRepository(): TicketMessageRepository
  22. {
  23. return TicketMessageRepository::getInstance();
  24. }
  25. public function getFactory(): TicketMessageBuilder
  26. {
  27. return TicketMessageBuilder::getInstance();
  28. }
  29. }