<?phpnamespace App\Entity;use App\Repository\MenuActionsRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=MenuActionsRepository::class) */class MenuActions{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $titre; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $couleur; /** * @ORM\Column(type="string", length=255) */ private $lien; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $couleurTexte; public function getId(): ?int { return $this->id; } public function getTitre(): ?string { return $this->titre; } public function setTitre(string $titre): self { $this->titre = $titre; return $this; } public function getCouleur(): ?string { return $this->couleur; } public function setCouleur(?string $couleur): self { $this->couleur = $couleur; return $this; } public function getLien(): ?string { return $this->lien; } public function setLien(string $lien): self { $this->lien = $lien; return $this; } public function getFichier() : string { return $this->lien; } public function setFichier(?string $fichier) : self { if(!is_null($fichier)){ $this->setLien('/images/upload/'.$fichier); } return $this; } public function getCouleurTexte(): ?string { return $this->couleurTexte; } public function setCouleurTexte(?string $couleurTexte): self { $this->couleurTexte = $couleurTexte; return $this; }}