|
- <?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;
- // }
-
- }
|