<?php
namespace App\Entity;
use App\Repository\CodeNafRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
#[ORM\Entity(repositoryClass: CodeNafRepository::class)]
class CodeNaf
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $code = null;
#[ORM\Column(type: Types::TEXT)]
private ?string $libelle = null;
#[ORM\Column(nullable: true)]
private ?bool $isImport = null;
public function getId(): ?int
{
return $this->id;
}
public function getCode(): ?string
{
return $this->code;
}
public function setCode(string $code): self
{
$this->code = $code;
return $this;
}
public function getLibelle(): ?string
{
return $this->libelle;
}
public function setLibelle(string $libelle): self
{
$this->libelle = $libelle;
return $this;
}
public function __toString()
{
return $this->code . " - " . $this->libelle;
}
public function isIsImport(): ?bool
{
return $this->isImport;
}
public function setIsImport(?bool $isImport): self
{
$this->isImport = $isImport;
return $this;
}
}