您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

49 行
1.1KB

  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. }