Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

48 linhas
1.2KB

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