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.

34 lines
936B

  1. <?php
  2. namespace common\logic\Order\OrderStatusHistory\Wrapper;
  3. use common\logic\AbstractContainer;
  4. use common\logic\Order\OrderStatusHistory\Model\OrderStatusHistory;
  5. use common\logic\Order\OrderStatusHistory\Repository\OrderStatusHistoryRepository;
  6. use common\logic\Order\OrderStatusHistory\Service\OrderStatusHistoryBuilder;
  7. class OrderStatusHistoryContainer extends AbstractContainer
  8. {
  9. public function getEntityFqcn(): string
  10. {
  11. return OrderStatusHistory::class;
  12. }
  13. public function getServices(): array
  14. {
  15. return [
  16. OrderStatusHistoryRepository::class,
  17. OrderStatusHistoryBuilder::class
  18. ];
  19. }
  20. public function getRepository(): OrderStatusHistoryRepository
  21. {
  22. return OrderStatusHistoryRepository::getInstance();
  23. }
  24. public function getBuilder(): OrderStatusHistoryBuilder
  25. {
  26. return OrderStatusHistoryBuilder::getInstance();
  27. }
  28. }