src/Entity/DocumentCategory.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DocumentCategoryRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassDocumentCategoryRepository::class)]
  6. class DocumentCategory
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length255nullabletrue)]
  13.     private ?string $label null;
  14.     public function getId(): ?int
  15.     {
  16.         return $this->id;
  17.     }
  18.     public function getLabel(): ?string
  19.     {
  20.         return $this->label;
  21.     }
  22.     public function setLabel(?string $label): self
  23.     {
  24.         $this->label $label;
  25.         return $this;
  26.     }
  27.     public function __toString()
  28.     {
  29.         return $this->getLabel();
  30.     }
  31. }