No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

ComponentContainer.php 3.1KB

hace 2 años
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. public function __construct(
  27. CitiesComponent $citiesComponent,
  28. CookieComponent $cookieComponent,
  29. DateComponent $dateComponent,
  30. EntityComponent $entityComponent,
  31. FileComponent $fileComponent,
  32. FormComponent $formComponent,
  33. MetaComponent $metaComponent,
  34. NumberComponent $numberComponent,
  35. PointLocationComponent $pointLocationComponent,
  36. StringComponent $stringComponent
  37. ) {
  38. $this->citiesComponent = $citiesComponent;
  39. $this->cookieComponent = $cookieComponent;
  40. $this->dateComponent = $dateComponent;
  41. $this->entityComponent = $entityComponent;
  42. $this->fileComponent = $fileComponent;
  43. $this->formComponent = $formComponent;
  44. $this->metaComponent = $metaComponent;
  45. $this->numberComponent = $numberComponent;
  46. $this->pointLocationComponent = $pointLocationComponent;
  47. $this->stringComponent = $stringComponent;
  48. }
  49. public function getCitiesComponent(): CitiesComponent
  50. {
  51. return $this->citiesComponent;
  52. }
  53. public function getCookieComponent(): CookieComponent
  54. {
  55. return $this->cookieComponent;
  56. }
  57. public function getDateComponent(): DateComponent
  58. {
  59. return $this->dateComponent;
  60. }
  61. public function getEntityComponent(): EntityComponent
  62. {
  63. return $this->entityComponent;
  64. }
  65. public function getFileComponent(): FileComponent
  66. {
  67. return $this->fileComponent;
  68. }
  69. public function getFormComponent(): FormComponent
  70. {
  71. return $this->formComponent;
  72. }
  73. public function getMetaComponent(): MetaComponent
  74. {
  75. return $this->metaComponent;
  76. }
  77. public function getNumberComponent(): NumberComponent
  78. {
  79. return $this->numberComponent;
  80. }
  81. public function getPointLocationComponent(): PointLocationComponent
  82. {
  83. return $this->pointLocationComponent;
  84. }
  85. public function getStringComponent(): StringComponent
  86. {
  87. return $this->stringComponent;
  88. }
  89. }