src/Entity/Etat.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EtatRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassEtatRepository::class)]
  7. class Etat
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255nullabletrue)]
  14.     private ?string $etat null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $description null;
  17.     #[ORM\Column(nullabletrue)]
  18.     private ?int $indice null;
  19.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  20.     private ?\DateTimeInterface $date_creation null;
  21.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  22.     private ?\DateTimeInterface $date_update null;
  23.     #[ORM\Column(length255nullabletrue)]
  24.     private ?string $status null;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getEtat(): ?string
  30.     {
  31.         return $this->etat;
  32.     }
  33.     public function setEtat(?string $etat): static
  34.     {
  35.         $this->etat $etat;
  36.         return $this;
  37.     }
  38.     public function getDescription(): ?string
  39.     {
  40.         return $this->description;
  41.     }
  42.     public function setDescription(?string $description): static
  43.     {
  44.         $this->description $description;
  45.         return $this;
  46.     }
  47.     public function getIndice(): ?int
  48.     {
  49.         return $this->indice;
  50.     }
  51.     public function setIndice(?int $indice): static
  52.     {
  53.         $this->indice $indice;
  54.         return $this;
  55.     }
  56.     public function getDateCreation(): ?\DateTimeInterface
  57.     {
  58.         return $this->date_creation;
  59.     }
  60.     public function setDateCreation(?\DateTimeInterface $date_creation): static
  61.     {
  62.         $this->date_creation $date_creation;
  63.         return $this;
  64.     }
  65.     public function getDateUpdate(): ?\DateTimeInterface
  66.     {
  67.         return $this->date_update;
  68.     }
  69.     public function setDateUpdate(?\DateTimeInterface $date_update): static
  70.     {
  71.         $this->date_update $date_update;
  72.         return $this;
  73.     }
  74.     public function getStatus(): ?string
  75.     {
  76.         return $this->status;
  77.     }
  78.     public function setStatus(?string $status): static
  79.     {
  80.         $this->status $status;
  81.         return $this;
  82.     }
  83. }