您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

57 行
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. }