src/Entity/ImagesAccueil.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ImagesAccueilRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=ImagesAccueilRepository::class)
  7. */
  8. class ImagesAccueil
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\Column(type="string", length=255, nullable=true)
  18. */
  19. private $imageRealisations;
  20. /**
  21. * @ORM\Column(type="string", length=500, nullable=true)
  22. */
  23. private $texteRealisations;
  24. /**
  25. * @ORM\Column(type="string", length=255, nullable=true)
  26. */
  27. private $imageBlogs;
  28. /**
  29. * @ORM\Column(type="string", length=500, nullable=true)
  30. */
  31. private $texteBlogs;
  32. /**
  33. * @ORM\Column(type="string", length=255, nullable=true)
  34. */
  35. private $imageActualites;
  36. /**
  37. * @ORM\Column(type="string", length=500, nullable=true)
  38. */
  39. private $texteActualites;
  40. /**
  41. * @ORM\Column(type="string", length=255, nullable=true)
  42. */
  43. private $imageContact;
  44. /**
  45. * @ORM\Column(type="string", length=500, nullable=true)
  46. */
  47. private $texteContact;
  48. /**
  49. * @ORM\Column(type="string", length=255)
  50. */
  51. private $tarifsTitre;
  52. /**
  53. * @ORM\Column(type="text", length=1000, nullable=true)
  54. */
  55. private $tarifsDescription;
  56. /**
  57. * @ORM\Column(type="string", length=255)
  58. */
  59. private $texteService;
  60. /**
  61. * @ORM\Column(type="string", length=255)
  62. */
  63. private $ImageService;
  64. public function getId(): ?int
  65. {
  66. return $this->id;
  67. }
  68. public function getImageRealisations(): ?string
  69. {
  70. return $this->imageRealisations;
  71. }
  72. public function setImageRealisations(?string $imageRealisations): self
  73. {
  74. $this->imageRealisations = $imageRealisations;
  75. return $this;
  76. }
  77. public function getTexteRealisations(): ?string
  78. {
  79. return $this->texteRealisations;
  80. }
  81. public function setTexteRealisations(?string $texteRealisations): self
  82. {
  83. $this->texteRealisations = $texteRealisations;
  84. return $this;
  85. }
  86. public function getImageBlogs(): ?string
  87. {
  88. return $this->imageBlogs;
  89. }
  90. public function setImageBlogs(?string $imageBlogs): self
  91. {
  92. $this->imageBlogs = $imageBlogs;
  93. return $this;
  94. }
  95. public function getTexteBlogs(): ?string
  96. {
  97. return $this->texteBlogs;
  98. }
  99. public function setTexteBlogs(?string $texteBlogs): self
  100. {
  101. $this->texteBlogs = $texteBlogs;
  102. return $this;
  103. }
  104. public function getImageActualites(): ?string
  105. {
  106. return $this->imageActualites;
  107. }
  108. public function setImageActualites(?string $imageActualites): self
  109. {
  110. $this->imageActualites = $imageActualites;
  111. return $this;
  112. }
  113. public function getTexteActualites(): ?string
  114. {
  115. return $this->texteActualites;
  116. }
  117. public function setTexteActualites(?string $texteActualites): self
  118. {
  119. $this->texteActualites = $texteActualites;
  120. return $this;
  121. }
  122. public function getImageContact(): ?string
  123. {
  124. return $this->imageContact;
  125. }
  126. public function setImageContact(?string $imageContact): self
  127. {
  128. $this->imageContact = $imageContact;
  129. return $this;
  130. }
  131. public function getTexteContact(): ?string
  132. {
  133. return $this->texteContact;
  134. }
  135. public function setTexteContact(?string $texteContact): self
  136. {
  137. $this->texteContact = $texteContact;
  138. return $this;
  139. }
  140. public function getTarifsTitre(): ?string
  141. {
  142. return $this->tarifsTitre;
  143. }
  144. public function setTarifsTitre(string $tarifsTitre): self
  145. {
  146. $this->tarifsTitre = $tarifsTitre;
  147. return $this;
  148. }
  149. public function getTarifsDescription(): ?string
  150. {
  151. return $this->tarifsDescription;
  152. }
  153. public function setTarifsDescription(?string $tarifsDescription): self
  154. {
  155. $this->tarifsDescription = $tarifsDescription;
  156. return $this;
  157. }
  158. public function getTexteService(): ?string
  159. {
  160. return $this->texteService;
  161. }
  162. public function setTexteService(string $texteService): self
  163. {
  164. $this->texteService = $texteService;
  165. return $this;
  166. }
  167. public function getImageService(): ?string
  168. {
  169. return $this->ImageService;
  170. }
  171. public function setImageService(string $ImageService): self
  172. {
  173. $this->ImageService = $ImageService;
  174. return $this;
  175. }
  176. public function getAbsoluteImageRealisations() : ?string
  177. {
  178. return sprintf("https://%s/websiteImage/realisation.jpg",$_SERVER['HTTP_HOST']);
  179. }
  180. public function getAbsoluteImageBlog() : ?string
  181. {
  182. return sprintf("https://%s/websiteImage/blog.jpg",$_SERVER['HTTP_HOST']);
  183. }
  184. public function getAbsoluteImageActualites() : ?string
  185. {
  186. return sprintf("https://%s/websiteImage/news.jpg",$_SERVER['HTTP_HOST']);
  187. }
  188. public function getAbsoluteImageContact() : ?string
  189. {
  190. return sprintf("https://%s/websiteImage/contact.jpg",$_SERVER['HTTP_HOST']);
  191. }
  192. public function getAbsoluteImageServices() : ?string
  193. {
  194. return sprintf("https://%s/websiteImage/services.jpg",$_SERVER['HTTP_HOST']);
  195. }
  196. }