src/Entity/Articles/Finition.php line 18

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Articles;
  3. use App\Repository\Articles\FinitionRepository;
  4. use Datetime;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\ORM\Mapping as ORM;
  8. use Gedmo\Mapping\Annotation as Gedmo;
  9. use Symfony\Component\Validator\Constraints as Assert;
  10. use App\Annotations\SecuredEntity;
  11. /**
  12.  * @ORM\Entity(repositoryClass=FinitionRepository::class)
  13.  * @ORM\Table("article__finition")
  14.  */
  15. class Finition
  16. {
  17.     /**
  18.      * @ORM\Id
  19.      * @ORM\GeneratedValue
  20.      * @ORM\Column(type="integer")
  21.      */
  22.     private $id;
  23.     /**
  24.      * @ORM\Column(type="string", length=255, nullable=true)
  25.      * @Assert\NotBlank(message="Libellé obligatoire")
  26.      */
  27.     private $libelle;
  28.     /**
  29.      * @ORM\Column(type="string", length=255, nullable=true)
  30.      * @Assert\NotBlank(message="Référence obligatoire")
  31.      */
  32.     private $reference;
  33.     /**
  34.      * @ORM\Column(type="string", length=255, nullable=true)
  35.      * @Assert\NotBlank(message="Couleur obligatoire")
  36.      */
  37.     private $couleur;
  38.     /**
  39.      * @ORM\Column(type="string", length=255, nullable=true)
  40.      * @Assert\NotBlank(message="Couleur du texte obligatoire")
  41.      */
  42.     private $couleurTexte;
  43.     public function getId(): ?int
  44.     {
  45.         return $this->id;
  46.     }
  47.     public function getLibelle(): ?string
  48.     {
  49.         return $this->libelle;
  50.     }
  51.     public function setLibelle(?string $libelle): self
  52.     {
  53.         $this->libelle $libelle;
  54.         return $this;
  55.     }
  56.     public function getReference(): ?string
  57.     {
  58.         return $this->reference;
  59.     }
  60.     public function setReference(?string $reference): self
  61.     {
  62.         $this->reference $reference;
  63.         return $this;
  64.     }
  65.     public function getCouleur(): ?string
  66.     {
  67.         return $this->couleur;
  68.     }
  69.     public function setCouleur(?string $couleur): self
  70.     {
  71.         $this->couleur $couleur;
  72.         return $this;
  73.     }
  74.     public function __toString() {
  75.         return $this->libelle;
  76.     }
  77.     public function getCouleurTexte(): ?string
  78.     {
  79.         return $this->couleurTexte;
  80.     }
  81.     public function setCouleurTexte(?string $couleurTexte): self
  82.     {
  83.         $this->couleurTexte $couleurTexte;
  84.         return $this;
  85.     }
  86. }