src/Entity/Document.php line 8

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. #[ORM\Entity(repositoryClass'App\Repository\DocumentRepository')]
  5. class Document
  6. {
  7.     #[ORM\Id]
  8.     #[ORM\GeneratedValue]
  9.     #[ORM\Column(type'integer')]
  10.     private $id;
  11.     #[ORM\Column(type'string'length64nullabletrue)]
  12.     private $title;
  13.     #[ORM\Column(type'string'length255nullabletrue)]
  14.     private $description;
  15.     #[ORM\Column(type'text')]
  16.     private $fileName;
  17.     #[ORM\Column(type'integer'nullabletrue)]
  18.     private $fileSize;
  19.     #[ORM\Column(type'datetime'nullabletrue)]
  20.     private $createdAt;
  21.     #[ORM\ManyToOne(targetEntity'App\Entity\Office'inversedBy'documents')]
  22.     private $office;
  23.     #[ORM\ManyToOne(targetEntity'App\Entity\Company'inversedBy'documents')]
  24.     private $company;
  25.     #[ORM\Column(type'string'length64nullabletrue)]
  26.     private $fileType;
  27.     #[ORM\ManyToOne(targetEntity'App\Entity\User'inversedBy'documents')]
  28.     private $user;
  29.     public function getId(): ?int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getTitle(): ?string
  34.     {
  35.         return $this->title;
  36.     }
  37.     public function setTitle(?string $title): self
  38.     {
  39.         $this->title $title;
  40.         return $this;
  41.     }
  42.     public function getDescription(): ?string
  43.     {
  44.         return $this->description;
  45.     }
  46.     public function setDescription(?string $description): self
  47.     {
  48.         $this->description $description;
  49.         return $this;
  50.     }
  51.     public function getFileName(): ?string
  52.     {
  53.         return $this->fileName;
  54.     }
  55.     public function setFileName(string $fileName): self
  56.     {
  57.         $this->fileName $fileName;
  58.         return $this;
  59.     }
  60.     public function getFileSize(): ?int
  61.     {
  62.         return $this->fileSize;
  63.     }
  64.     public function setFileSize(?int $fileSize): self
  65.     {
  66.         $this->fileSize $fileSize;
  67.         return $this;
  68.     }
  69.     public function getCreatedAt(): ?\DateTimeInterface
  70.     {
  71.         return $this->createdAt;
  72.     }
  73.     public function setCreatedAt(?\DateTimeInterface $createdAt): self
  74.     {
  75.         $this->createdAt $createdAt;
  76.         return $this;
  77.     }
  78.     public function getOffice(): ?Office
  79.     {
  80.         return $this->office;
  81.     }
  82.     public function setOffice(?Office $office): self
  83.     {
  84.         $this->office $office;
  85.         return $this;
  86.     }
  87.     public function getCompany(): ?Company
  88.     {
  89.         return $this->company;
  90.     }
  91.     public function setCompany(?Company $company): self
  92.     {
  93.         $this->company $company;
  94.         return $this;
  95.     }
  96.     public function getFileType(): ?string
  97.     {
  98.         return $this->fileType;
  99.     }
  100.     public function setFileType(?string $fileType): self
  101.     {
  102.         $this->fileType $fileType;
  103.         return $this;
  104.     }
  105.     public function getUser(): ?User
  106.     {
  107.         return $this->user;
  108.     }
  109.     public function setUser(?User $user): self
  110.     {
  111.         $this->user $user;
  112.         return $this;
  113.     }
  114. }