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.

47 lines
1.1KB

  1. <?php
  2. namespace Lc\CaracoleBundle\Container\Order;
  3. use App\Entity\Order\OrderRefund;
  4. use Lc\CaracoleBundle\Factory\Order\OrderRefundFactory;
  5. use Lc\CaracoleBundle\Repository\Order\OrderRefundRepositoryQuery;
  6. use Lc\CaracoleBundle\Repository\Order\OrderRefundStore;
  7. class OrderRefundContainer
  8. {
  9. protected OrderRefundFactory $factory;
  10. protected OrderRefundRepositoryQuery $repositoryQuery;
  11. protected OrderRefundStore $store;
  12. public function __construct(
  13. OrderRefundFactory $factory,
  14. OrderRefundRepositoryQuery $repositoryQuery,
  15. OrderRefundStore $store
  16. ) {
  17. $this->factory = $factory;
  18. $this->repositoryQuery = $repositoryQuery;
  19. $this->store = $store;
  20. }
  21. public static function getEntityFqcn()
  22. {
  23. return OrderRefund::class;
  24. }
  25. public function getFactory(): OrderRefundFactory
  26. {
  27. return $this->factory;
  28. }
  29. public function getRepositoryQuery(): OrderRefundRepositoryQuery
  30. {
  31. return $this->repositoryQuery;
  32. }
  33. public function getStore(): OrderRefundStore
  34. {
  35. return $this->store;
  36. }
  37. }