|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
-
- namespace Lc\CaracoleBundle\Container\Config;
-
- use App\Entity\Config\TaxRate;
- use Lc\CaracoleBundle\Factory\Config\TaxRateFactory;
- use Lc\CaracoleBundle\Repository\Config\TaxRateRepositoryQuery;
- use Lc\CaracoleBundle\Repository\Config\TaxRateStore;
-
- class TaxRateContainer
- {
- protected TaxRateFactory $factory;
- protected TaxRateRepositoryQuery $repositoryQuery;
- protected TaxRateStore $store;
-
- public function __construct(
- TaxRateFactory $factory,
- TaxRateRepositoryQuery $repositoryQuery,
- TaxRateStore $store
- ) {
- $this->factory = $factory;
- $this->repositoryQuery = $repositoryQuery;
- $this->store = $store;
- }
-
-
- public static function getEntityFqcn()
- {
- return TaxRate::class;
- }
-
- public function getFactory(): TaxRateFactory
- {
- return $this->factory;
- }
-
- public function getRepositoryQuery(): TaxRateRepositoryQuery
- {
- return $this->repositoryQuery;
- }
-
- public function getStore(): TaxRateStore
- {
- $this->store->resetContext();
-
- return $this->store;
- }
- }
|