|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <?php
-
- namespace Lc\CaracoleBundle\Container\Reduction;
-
- use App\Entity\Reduction\ReductionCatalog;
- use Lc\CaracoleBundle\Definition\Field\Reduction\ReductionCatalogFieldDefinition;
- use Lc\CaracoleBundle\Factory\Reduction\ReductionCatalogFactory;
- use Lc\CaracoleBundle\Repository\Reduction\ReductionCatalogRepositoryQuery;
- use Lc\CaracoleBundle\Repository\Reduction\ReductionCatalogStore;
- use Lc\CaracoleBundle\Solver\Reduction\ReductionCatalogSolver;
-
- class ReductionCatalogContainer
- {
- protected ReductionCatalogFactory $factory;
- protected ReductionCatalogRepositoryQuery $repositoryQuery;
- protected ReductionCatalogStore $store;
- protected ReductionCatalogFieldDefinition $fieldDefinition;
-
- public function __construct(
- ReductionCatalogFactory $factory,
- ReductionCatalogRepositoryQuery $repositoryQuery,
- ReductionCatalogStore $store,
- ReductionCatalogFieldDefinition $fieldDefinition
- ) {
- $this->factory = $factory;
- $this->repositoryQuery = $repositoryQuery;
- $this->store = $store;
- $this->fieldDefinition = $fieldDefinition;
- }
-
- public static function getEntityFqcn()
- {
- return ReductionCatalog::class;
- }
-
- public function getFactory(): ReductionCatalogFactory
- {
- return $this->factory;
- }
-
- public function getRepositoryQuery(): ReductionCatalogRepositoryQuery
- {
- return $this->repositoryQuery;
- }
-
- public function getStore(): ReductionCatalogStore
- {
- $this->store->resetContext();
-
- return $this->store;
- }
-
- public function getFieldDefinition(): ReductionCatalogFieldDefinition
- {
- return $this->fieldDefinition;
- }
-
- // public function getSolver(): ReductionCatalogSolver
- // {
- // return $this->solver;
- // }
-
- }
|