選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

103 行
3.1KB

  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. }