選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

43 行
1.2KB

  1. <?php
  2. namespace common\logic\Ticket\TicketUser\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. use common\logic\Ticket\TicketUser\Repository\TicketUserRepository;
  8. use common\logic\Ticket\TicketUser\Service\TicketUserBuilder;
  9. use common\logic\Ticket\TicketUser\Service\TicketUserDefinition;
  10. /**
  11. * @mixin TicketMessageDefinition
  12. * @mixin TicketMessageRepository
  13. * @mixin TicketMessageBuilder
  14. */
  15. class TicketUserModule extends AbstractModule
  16. {
  17. public function getServices(): array
  18. {
  19. return [
  20. TicketUserDefinition::class,
  21. TicketUserRepository::class,
  22. TicketUserBuilder::class
  23. ];
  24. }
  25. public function getDefinition(): TicketUserDefinition
  26. {
  27. return TicketUserDefinition::getInstance();
  28. }
  29. public function getRepository(): TicketUserRepository
  30. {
  31. return TicketUserRepository::getInstance();
  32. }
  33. public function getBuilder(): TicketUserBuilder
  34. {
  35. return TicketUserBuilder::getInstance();
  36. }
  37. }