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