src/Entity/UserFile.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\UserFileRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassUserFileRepository::class)]
  6. class UserFile
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\ManyToOne(targetEntityUserInfo::class)]
  13.     private $userInfo;
  14.     #[ORM\ManyToOne(targetEntityGlobalConstant::class)]
  15.     #[ORM\JoinColumn(nullabletrueonDelete'SET NULL')]
  16.     private $fileType;
  17.     #[ORM\ManyToOne(targetEntityFile::class)]
  18.     private $file;
  19.     #[ORM\Column(type'string'length255nullabletrue)]
  20.     private $filePath;
  21.     public function getId(): ?int
  22.     {
  23.         return $this->id;
  24.     }
  25.     public function getUserInfo(): ?UserInfo
  26.     {
  27.         return $this->userInfo;
  28.     }
  29.     public function setUserInfo(?UserInfo $userInfo): self
  30.     {
  31.         $this->userInfo $userInfo;
  32.         return $this;
  33.     }
  34.     public function getFileType(): ?GlobalConstant
  35.     {
  36.         return $this->fileType;
  37.     }
  38.     public function setFileType(?GlobalConstant $fileType): self
  39.     {
  40.         $this->fileType $fileType;
  41.         return $this;
  42.     }
  43.     public function getFile(): ?File
  44.     {
  45.         return $this->file;
  46.     }
  47.     public function setFile(?File $file): self
  48.     {
  49.         $this->file $file;
  50.         return $this;
  51.     }
  52.     public function getFilePath(): ?string
  53.     {
  54.         return $this->filePath;
  55.     }
  56.     public function setFilePath(string $filePath): self
  57.     {
  58.         $this->filePath $filePath;
  59.         return $this;
  60.     }
  61. }