Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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