You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
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. }