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.

QualityLabelContainer.php 1.2KB

pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. namespace Lc\CaracoleBundle\Container\Product;
  3. use Lc\CaracoleBundle\Factory\Product\QualityLabelFactory;
  4. use Lc\CaracoleBundle\Model\Product\QualityLabel;
  5. use Lc\CaracoleBundle\Repository\Product\QualityLabelRepositoryQuery;
  6. use Lc\CaracoleBundle\Repository\Product\QualityLabelStore;
  7. class QualityLabelContainer
  8. {
  9. protected QualityLabelFactory $factory;
  10. protected QualityLabelRepositoryQuery $repositoryQuery;
  11. protected QualityLabelStore $store;
  12. public function __construct(
  13. QualityLabelFactory $factory,
  14. QualityLabelRepositoryQuery $repositoryQuery,
  15. QualityLabelStore $store
  16. ) {
  17. $this->factory = $factory;
  18. $this->repositoryQuery = $repositoryQuery;
  19. $this->store = $store;
  20. }
  21. public static function getEntityFqcn()
  22. {
  23. return QualityLabel::class;
  24. }
  25. public function getFactory(): QualityLabelFactory
  26. {
  27. return $this->factory;
  28. }
  29. public function getRepositoryQuery(): QualityLabelRepositoryQuery
  30. {
  31. return $this->repositoryQuery;
  32. }
  33. public function getStore(): QualityLabelStore
  34. {
  35. return $this->store;
  36. }
  37. }