src/Entity/GeneratedReport.php line 17

  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity;
  4. use App\Entity\Mapped\NamedEntity;
  5. use App\Repository\GeneratedReportRepository;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(
  8.     repositoryClassGeneratedReportRepository::class
  9. )]
  10. #[ORM\Table(
  11.     name'generated_report'
  12. )]
  13. class GeneratedReport extends NamedEntity
  14. {
  15.     #[ORM\Column(
  16.         name'full_document_path',
  17.         type'string',
  18.         nullabletrue
  19.     )]
  20.     private ?string $fullDocumentPath null;
  21.     #[ORM\ManyToOne(
  22.         targetEntityUser::class
  23.     )]
  24.     #[ORM\JoinColumn(
  25.         name'receiver'
  26.     )]
  27.     private ?User $user null;
  28.     #[ORM\ManyToOne(
  29.         targetEntityReport::class
  30.     )]
  31.     #[ORM\JoinColumn(
  32.         name'report'
  33.     )]
  34.     private ?Report $report null;
  35.     public function getFullDocumentPath(): ?string
  36.     {
  37.         return $this->fullDocumentPath;
  38.     }
  39.     public function setFullDocumentPath(?string $fullDocumentPath): self
  40.     {
  41.         $this->fullDocumentPath $fullDocumentPath;
  42.         return $this;
  43.     }
  44.     public function getUser(): ?User
  45.     {
  46.         return $this->user;
  47.     }
  48.     public function setUser(?User $user): self
  49.     {
  50.         $this->user $user;
  51.         return $this;
  52.     }
  53.     public function getReport(): ?Report
  54.     {
  55.         return $this->report;
  56.     }
  57.     public function setReport(?Report $report): self
  58.     {
  59.         $this->report $report;
  60.         return $this;
  61.     }
  62. }