|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
-
- namespace Lc\CaracoleBundle\Container\Reduction;
-
- use App\Entity\Reduction\ReductionCart;
- use Lc\CaracoleBundle\Definition\Field\Reduction\ReductionCartFieldDefinition;
- use Lc\CaracoleBundle\Factory\Reduction\ReductionCartFactory;
- use Lc\CaracoleBundle\Repository\Reduction\ReductionCartRepositoryQuery;
- use Lc\CaracoleBundle\Repository\Reduction\ReductionCartStore;
-
- class ReductionCartContainer
- {
- protected ReductionCartFactory $factory;
- protected ReductionCartRepositoryQuery $repositoryQuery;
- protected ReductionCartStore $store;
- protected ReductionCartFieldDefinition $fieldDefinition;
-
- public function __construct(
- ReductionCartFactory $factory,
- ReductionCartRepositoryQuery $repositoryQuery,
- ReductionCartStore $store,
- ReductionCartFieldDefinition $fieldDefinition
- ) {
- $this->factory = $factory;
- $this->repositoryQuery = $repositoryQuery;
- $this->store = $store;
- $this->fieldDefinition = $fieldDefinition;
- }
-
-
- public static function getEntityFqcn()
- {
- return ReductionCart::class;
- }
-
- public function getFactory(): ReductionCartFactory
- {
- return $this->factory;
- }
-
- public function getRepositoryQuery(): ReductionCartRepositoryQuery
- {
- return $this->repositoryQuery;
- }
-
- public function getStore(): ReductionCartStore
- {
- $this->store->resetContext();
-
- return $this->store;
- }
-
- public function getFieldDefinition(): ReductionCartFieldDefinition
- {
- return $this->fieldDefinition;
- }
- }
|