<?php
namespace App\Entity;
use App\Repository\CouleurDePostRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: CouleurDePostRepository::class)]
class CouleurDePost
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 50, nullable: true)]
private ?string $designation = null;
#[ORM\Column(length: 10, nullable: true)]
private ?string $code_hexa = null;
#[ORM\Column(length: 10, nullable: true)]
private ?string $code_hexa_dark = null;
public function __toString(): string
{
return (string)$this->designation;
}
public function getId(): ?int
{
return $this->id;
}
public function getDesignation(): ?string
{
return $this->designation;
}
public function setDesignation(?string $designation): static
{
$this->designation = $designation;
return $this;
}
public function getCodeHexa(): ?string
{
return $this->code_hexa;
}
public function setCodeHexa(?string $code_hexa): static
{
$this->code_hexa = $code_hexa;
return $this;
}
public function getCodeHexaDark(): ?string
{
return $this->code_hexa_dark;
}
public function setCodeHexaDark(?string $code_hexa_dark): static
{
$this->code_hexa_dark = $code_hexa_dark;
return $this;
}
}