src/Entity/MenuActions.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MenuActionsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=MenuActionsRepository::class)
  7. */
  8. class MenuActions
  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)
  18. */
  19. private $titre;
  20. /**
  21. * @ORM\Column(type="string", length=255, nullable=true)
  22. */
  23. private $couleur;
  24. /**
  25. * @ORM\Column(type="string", length=255)
  26. */
  27. private $lien;
  28. /**
  29. * @ORM\Column(type="string", length=255, nullable=true)
  30. */
  31. private $couleurTexte;
  32. public function getId(): ?int
  33. {
  34. return $this->id;
  35. }
  36. public function getTitre(): ?string
  37. {
  38. return $this->titre;
  39. }
  40. public function setTitre(string $titre): self
  41. {
  42. $this->titre = $titre;
  43. return $this;
  44. }
  45. public function getCouleur(): ?string
  46. {
  47. return $this->couleur;
  48. }
  49. public function setCouleur(?string $couleur): self
  50. {
  51. $this->couleur = $couleur;
  52. return $this;
  53. }
  54. public function getLien(): ?string
  55. {
  56. return $this->lien;
  57. }
  58. public function setLien(string $lien): self
  59. {
  60. $this->lien = $lien;
  61. return $this;
  62. }
  63. public function getFichier() : string
  64. {
  65. return $this->lien;
  66. }
  67. public function setFichier(?string $fichier) : self
  68. {
  69. if(!is_null($fichier)){
  70. $this->setLien('/images/upload/'.$fichier);
  71. }
  72. return $this;
  73. }
  74. public function getCouleurTexte(): ?string
  75. {
  76. return $this->couleurTexte;
  77. }
  78. public function setCouleurTexte(?string $couleurTexte): self
  79. {
  80. $this->couleurTexte = $couleurTexte;
  81. return $this;
  82. }
  83. }