Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

ReductionCreditContainer.php 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. }