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.

преди 3 години
преди 2 години
преди 3 години
преди 2 години
преди 3 години
123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace Lc\CaracoleBundle\Container\Config;
  3. use App\Entity\Config\Unit;
  4. use Lc\CaracoleBundle\Factory\Config\UnitFactory;
  5. use Lc\CaracoleBundle\Repository\Config\UnitRepositoryQuery;
  6. use Lc\CaracoleBundle\Repository\Config\UnitStore;
  7. class UnitContainer
  8. {
  9. protected UnitFactory $factory;
  10. protected UnitRepositoryQuery $repositoryQuery;
  11. protected UnitStore $store;
  12. public function __construct(
  13. UnitFactory $factory,
  14. UnitRepositoryQuery $repositoryQuery,
  15. UnitStore $store
  16. ) {
  17. $this->factory = $factory;
  18. $this->repositoryQuery = $repositoryQuery;
  19. $this->store = $store;
  20. }
  21. public static function getEntityFqcn()
  22. {
  23. return Unit::class;
  24. }
  25. public function getFactory(): UnitFactory
  26. {
  27. return $this->factory;
  28. }
  29. public function getRepositoryQuery(): UnitRepositoryQuery
  30. {
  31. return $this->repositoryQuery;
  32. }
  33. public function getStore(): UnitStore
  34. {
  35. return $this->store;
  36. }
  37. }