選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

TaxRateContainer.php 1.1KB

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