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.

49 line
1.2KB

  1. <?php
  2. namespace Lc\CaracoleBundle\Container\Address;
  3. use Lc\CaracoleBundle\Builder\Address\AddressBuilder;
  4. use Lc\CaracoleBundle\Factory\Address\AddressFactory;
  5. use Lc\CaracoleBundle\Repository\Address\AddressRepositoryQuery;
  6. use Lc\CaracoleBundle\Repository\Address\AddressStore;
  7. class AddressContainer
  8. {
  9. protected AddressFactory $factory;
  10. protected AddressRepositoryQuery $repositoryQuery;
  11. protected AddressStore $store;
  12. protected AddressBuilder $builder;
  13. public function __construct(
  14. AddressFactory $factory,
  15. AddressRepositoryQuery $repositoryQuery,
  16. AddressStore $store,
  17. AddressBuilder $builder
  18. ) {
  19. $this->factory = $factory;
  20. $this->repositoryQuery = $repositoryQuery;
  21. $this->store = $store;
  22. $this->builder = $builder;
  23. }
  24. public function getFactory(): AddressFactory
  25. {
  26. return $this->factory;
  27. }
  28. public function getRepositoryQuery(): AddressRepositoryQuery
  29. {
  30. return $this->repositoryQuery;
  31. }
  32. public function getStore(): AddressStore
  33. {
  34. return $this->store;
  35. }
  36. public function getBuilder(): AddressBuilder
  37. {
  38. return $this->builder;
  39. }
  40. }