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.3KB

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