<?php
namespace App\Entity;
use App\Repository\UserFileRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: UserFileRepository::class)]
class UserFile
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\ManyToOne(targetEntity: UserInfo::class)]
private $userInfo;
#[ORM\ManyToOne(targetEntity: GlobalConstant::class)]
#[ORM\JoinColumn(nullable: true, onDelete: 'SET NULL')]
private $fileType;
#[ORM\ManyToOne(targetEntity: File::class)]
private $file;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $filePath;
public function getId(): ?int
{
return $this->id;
}
public function getUserInfo(): ?UserInfo
{
return $this->userInfo;
}
public function setUserInfo(?UserInfo $userInfo): self
{
$this->userInfo = $userInfo;
return $this;
}
public function getFileType(): ?GlobalConstant
{
return $this->fileType;
}
public function setFileType(?GlobalConstant $fileType): self
{
$this->fileType = $fileType;
return $this;
}
public function getFile(): ?File
{
return $this->file;
}
public function setFile(?File $file): self
{
$this->file = $file;
return $this;
}
public function getFilePath(): ?string
{
return $this->filePath;
}
public function setFilePath(string $filePath): self
{
$this->filePath = $filePath;
return $this;
}
}