src/Entity/CouleurDePost.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CouleurDePostRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassCouleurDePostRepository::class)]
  6. class CouleurDePost
  7. {
  8.   #[ORM\Id]
  9.   #[ORM\GeneratedValue]
  10.   #[ORM\Column]
  11.   private ?int $id null;
  12.   #[ORM\Column(length50nullabletrue)]
  13.   private ?string $designation null;
  14.   #[ORM\Column(length10nullabletrue)]
  15.   private ?string $code_hexa null;
  16.   #[ORM\Column(length10nullabletrue)]
  17.   private ?string $code_hexa_dark null;
  18.   public function __toString(): string
  19.   {
  20.     return (string)$this->designation;
  21.   }
  22.   public function getId(): ?int
  23.   {
  24.     return $this->id;
  25.   }
  26.   public function getDesignation(): ?string
  27.   {
  28.     return $this->designation;
  29.   }
  30.   public function setDesignation(?string $designation): static
  31.   {
  32.     $this->designation $designation;
  33.     return $this;
  34.   }
  35.   public function getCodeHexa(): ?string
  36.   {
  37.     return $this->code_hexa;
  38.   }
  39.   public function setCodeHexa(?string $code_hexa): static
  40.   {
  41.     $this->code_hexa $code_hexa;
  42.     return $this;
  43.   }
  44.   public function getCodeHexaDark(): ?string
  45.   {
  46.       return $this->code_hexa_dark;
  47.   }
  48.   public function setCodeHexaDark(?string $code_hexa_dark): static
  49.   {
  50.       $this->code_hexa_dark $code_hexa_dark;
  51.       return $this;
  52.   }
  53. }