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.

OrderReductionCreditContainer.php 1.2KB

преди 3 години
преди 2 години
преди 3 години
преди 2 години
преди 3 години
преди 2 години
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. }