src/Entity/IconesColorees.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\IconesColoreesRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=IconesColoreesRepository::class)
  7. */
  8. class IconesColorees
  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 $icone;
  20. /**
  21. * @ORM\Column(type="string", length=255)
  22. */
  23. private $titre;
  24. /**
  25. * @ORM\Column(type="string", length=255)
  26. */
  27. private $description;
  28. public function getId(): ?int
  29. {
  30. return $this->id;
  31. }
  32. public function getIcone(): ?string
  33. {
  34. return $this->icone;
  35. }
  36. public function setIcone(string $icone): self
  37. {
  38. $vars = explode('/',$icone);
  39. if(isset($vars[4])){
  40. $vars[4] = 80;
  41. }
  42. $icon = implode('/',$vars);
  43. $this->icone = $icon;
  44. return $this;
  45. }
  46. public function getTitre(): ?string
  47. {
  48. return $this->titre;
  49. }
  50. public function setTitre(string $titre): self
  51. {
  52. $this->titre = $titre;
  53. return $this;
  54. }
  55. public function getDescription(): ?string
  56. {
  57. return $this->description;
  58. }
  59. public function setDescription(string $description): self
  60. {
  61. $this->description = $description;
  62. return $this;
  63. }
  64. }