You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.6KB

  1. <?php
  2. namespace Lc\CaracoleBundle\Container\Reduction;
  3. use App\Definition\Field\Reduction\ReductionCreditFieldDefinition;
  4. use App\Entity\Reduction\ReductionCredit;
  5. use Lc\CaracoleBundle\Factory\Reduction\ReductionCreditFactory;
  6. use Lc\CaracoleBundle\Repository\Reduction\ReductionCreditRepositoryQuery;
  7. use Lc\CaracoleBundle\Repository\Reduction\ReductionCreditStore;
  8. class ReductionCreditContainer
  9. {
  10. protected ReductionCreditFactory $factory;
  11. protected ReductionCreditRepositoryQuery $repositoryQuery;
  12. protected ReductionCreditStore $store;
  13. protected ReductionCreditFieldDefinition $fieldDefinition;
  14. public function __construct(
  15. ReductionCreditFactory $factory,
  16. ReductionCreditRepositoryQuery $repositoryQuery,
  17. ReductionCreditStore $store,
  18. ReductionCreditFieldDefinition $fieldDefinition
  19. ) {
  20. $this->factory = $factory;
  21. $this->repositoryQuery = $repositoryQuery;
  22. $this->store = $store;
  23. $this->fieldDefinition = $fieldDefinition;
  24. }
  25. public static function getEntityFqcn()
  26. {
  27. return ReductionCredit::class;
  28. }
  29. public function getFactory(): ReductionCreditFactory
  30. {
  31. return $this->factory;
  32. }
  33. public function getRepositoryQuery(): ReductionCreditRepositoryQuery
  34. {
  35. return $this->repositoryQuery;
  36. }
  37. public function getStore(): ReductionCreditStore
  38. {
  39. return $this->store;
  40. }
  41. public function getFieldDefinition(): ReductionCreditFieldDefinition
  42. {
  43. return $this->fieldDefinition;
  44. }
  45. }