src/Entity/CodesNaces.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CodesNacesRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassCodesNacesRepository::class)]
  7. class CodesNaces
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255nullabletrue)]
  14.     private ?string $code null;
  15.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  16.     private ?string $libelle null;
  17.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  18.     private ?\DateTimeInterface $date_creation null;
  19.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  20.     private ?\DateTimeInterface $date_update null;
  21.     public function getId(): ?int
  22.     {
  23.         return $this->id;
  24.     }
  25.     public function getCode(): ?string
  26.     {
  27.         return $this->code;
  28.     }
  29.     public function setCode(?string $code): static
  30.     {
  31.         $this->code $code;
  32.         return $this;
  33.     }
  34.     public function getLibelle(): ?string
  35.     {
  36.         return $this->libelle;
  37.     }
  38.     public function setLibelle(?string $libelle): static
  39.     {
  40.         $this->libelle $libelle;
  41.         return $this;
  42.     }
  43.     public function getDateCreation(): ?\DateTimeInterface
  44.     {
  45.         return $this->date_creation;
  46.     }
  47.     public function setDateCreation(?\DateTimeInterface $date_creation): static
  48.     {
  49.         $this->date_creation $date_creation;
  50.         return $this;
  51.     }
  52.     public function getDateUpdate(): ?\DateTimeInterface
  53.     {
  54.         return $this->date_update;
  55.     }
  56.     public function setDateUpdate(?\DateTimeInterface $date_update): static
  57.     {
  58.         $this->date_update $date_update;
  59.         return $this;
  60.     }
  61. }