src/Entity/Documents.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DocumentsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassDocumentsRepository::class)]
  6. class Documents
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length255)]
  13.     private ?string $title null;
  14.     #[ORM\Column(length255)]
  15.     private ?string $category null;
  16.     #[ORM\Column(type'string')]
  17.     private ?string $filePath null;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     public function getTitle(): ?string
  23.     {
  24.         return $this->title;
  25.     }
  26.     public function setTitle(string $title): static
  27.     {
  28.         $this->title $title;
  29.         return $this;
  30.     }
  31.     public function getCategory(): ?string
  32.     {
  33.         return $this->category;
  34.     }
  35.     public function setCategory(string $category): static
  36.     {
  37.         $this->category $category;
  38.         return $this;
  39.     }
  40.     /**
  41.      * Get the value of filePath
  42.      */
  43.     public function getFilePath(): ?string
  44.     {
  45.         return $this->filePath;
  46.     }
  47.     /**
  48.      * Set the value of filePath
  49.      */
  50.     public function setFilePath(string $filePath): self
  51.     {
  52.         $this->filePath $filePath;
  53.         return $this;
  54.     }
  55. }