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.

ComponentContainer.php 3.0KB

пре 3 година
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <?php
  2. namespace Lc\SovBundle\Container;
  3. use Lc\SovBundle\Component\CitiesComponent;
  4. use Lc\SovBundle\Component\CookieComponent;
  5. use Lc\SovBundle\Component\DateComponent;
  6. use Lc\SovBundle\Component\EntityComponent;
  7. use Lc\SovBundle\Component\FileComponent;
  8. use Lc\SovBundle\Component\FormComponent;
  9. use Lc\SovBundle\Component\MetaComponent;
  10. use Lc\SovBundle\Component\NumberComponent;
  11. use Lc\SovBundle\Component\PointLocationComponent;
  12. use Lc\SovBundle\Component\StringComponent;
  13. class ComponentContainer
  14. {
  15. protected CitiesComponent $citiesComponent;
  16. protected CookieComponent $cookieComponent;
  17. protected DateComponent $dateComponent;
  18. protected EntityComponent $entityComponent;
  19. protected FileComponent $fileComponent;
  20. protected FormComponent $formComponent;
  21. protected MetaComponent $metaComponent;
  22. protected NumberComponent $numberComponent;
  23. protected PointLocationComponent $pointLocationComponent;
  24. protected StringComponent $stringComponent;
  25. public function __construct(
  26. CitiesComponent $citiesComponent,
  27. CookieComponent $cookieComponent,
  28. DateComponent $dateComponent,
  29. EntityComponent $entityComponent,
  30. FileComponent $fileComponent,
  31. FormComponent $formComponent,
  32. MetaComponent $metaComponent,
  33. NumberComponent $numberComponent,
  34. PointLocationComponent $pointLocationComponent,
  35. StringComponent $stringComponent
  36. ) {
  37. $this->citiesComponent = $citiesComponent;
  38. $this->cookieComponent = $cookieComponent;
  39. $this->dateComponent = $dateComponent;
  40. $this->entityComponent = $entityComponent;
  41. $this->fileComponent = $fileComponent;
  42. $this->formComponent = $formComponent;
  43. $this->metaComponent = $metaComponent;
  44. $this->numberComponent = $numberComponent;
  45. $this->pointLocationComponent = $pointLocationComponent;
  46. $this->stringComponent = $stringComponent;
  47. }
  48. public function getCitiesComponent(): CitiesComponent
  49. {
  50. return $this->citiesComponent;
  51. }
  52. public function getCookieComponent(): CookieComponent
  53. {
  54. return $this->cookieComponent;
  55. }
  56. public function getDateComponent(): DateComponent
  57. {
  58. return $this->dateComponent;
  59. }
  60. public function getEntityComponent(): EntityComponent
  61. {
  62. return $this->entityComponent;
  63. }
  64. public function getFileComponent(): FileComponent
  65. {
  66. return $this->fileComponent;
  67. }
  68. public function getFormComponent(): FormComponent
  69. {
  70. return $this->formComponent;
  71. }
  72. public function getMetaComponent(): MetaComponent
  73. {
  74. return $this->metaComponent;
  75. }
  76. public function getNumberComponent(): NumberComponent
  77. {
  78. return $this->numberComponent;
  79. }
  80. public function getPointLocationComponent(): PointLocationComponent
  81. {
  82. return $this->pointLocationComponent;
  83. }
  84. public function getStringComponent(): StringComponent
  85. {
  86. return $this->stringComponent;
  87. }
  88. }