<?phpnamespace App\Entity\Articles;use App\Repository\Articles\FinitionRepository;use Datetime;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;use Gedmo\Mapping\Annotation as Gedmo;use Symfony\Component\Validator\Constraints as Assert;use App\Annotations\SecuredEntity;/** * @ORM\Entity(repositoryClass=FinitionRepository::class) * @ORM\Table("article__finition") */class Finition{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255, nullable=true) * @Assert\NotBlank(message="Libellé obligatoire") */ private $libelle; /** * @ORM\Column(type="string", length=255, nullable=true) * @Assert\NotBlank(message="Référence obligatoire") */ private $reference; /** * @ORM\Column(type="string", length=255, nullable=true) * @Assert\NotBlank(message="Couleur obligatoire") */ private $couleur; /** * @ORM\Column(type="string", length=255, nullable=true) * @Assert\NotBlank(message="Couleur du texte obligatoire") */ private $couleurTexte; public function getId(): ?int { return $this->id; } public function getLibelle(): ?string { return $this->libelle; } public function setLibelle(?string $libelle): self { $this->libelle = $libelle; return $this; } public function getReference(): ?string { return $this->reference; } public function setReference(?string $reference): self { $this->reference = $reference; return $this; } public function getCouleur(): ?string { return $this->couleur; } public function setCouleur(?string $couleur): self { $this->couleur = $couleur; return $this; } public function __toString() { return $this->libelle; } public function getCouleurTexte(): ?string { return $this->couleurTexte; } public function setCouleurTexte(?string $couleurTexte): self { $this->couleurTexte = $couleurTexte; return $this; }}