src/Entity/CodeNaf.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CodeNafRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Component\Serializer\Annotation\Groups;
  7. #[ORM\Entity(repositoryClassCodeNafRepository::class)]
  8. class CodeNaf
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length255)]
  15.     private ?string $code null;
  16.     #[ORM\Column(typeTypes::TEXT)]
  17.     private ?string $libelle null;
  18.     #[ORM\Column(nullabletrue)]
  19.     private ?bool $isImport null;
  20.     public function getId(): ?int
  21.     {
  22.         return $this->id;
  23.     }
  24.     public function getCode(): ?string
  25.     {
  26.         return $this->code;
  27.     }
  28.     public function setCode(string $code): self
  29.     {
  30.         $this->code $code;
  31.         return $this;
  32.     }
  33.     public function getLibelle(): ?string
  34.     {
  35.         return $this->libelle;
  36.     }
  37.     public function setLibelle(string $libelle): self
  38.     {
  39.         $this->libelle $libelle;
  40.         return $this;
  41.     }
  42.     public function __toString()
  43.     {
  44.         return $this->code " - " $this->libelle;
  45.     }
  46.     public function isIsImport(): ?bool
  47.     {
  48.         return $this->isImport;
  49.     }
  50.     public function setIsImport(?bool $isImport): self
  51.     {
  52.         $this->isImport $isImport;
  53.         return $this;
  54.     }
  55. }