<?phpnamespace App\Entity;use App\Repository\MediaRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=MediaRepository::class) */class Media{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $path; /** * @ORM\Column(type="string", length=50) */ private $documentId; /** * @ORM\ManyToOne(targetEntity=Users::class) */ private $userCreate; /** * @ORM\ManyToOne(targetEntity=Folder::class) */ private $folder; /** * @ORM\ManyToOne(targetEntity=Attachment::class) */ private $attachment; /** * @ORM\Column(type="datetime", nullable=true) */ private $dateCreate; /** * @ORM\Column(type="boolean", nullable=true) */ private $isDeleted; public function getId(): ?int { return $this->id; } public function getPath(): ?string { return $this->path; } public function setPath(string $path): self { $this->path = $path; return $this; } public function getDocumentId(): ?string { return $this->documentId; } public function setDocumentId(string $documentId): self { $this->documentId = $documentId; return $this; } public function getUserCreate(): ?Users { return $this->userCreate; } public function setUserCreate(?Users $userCreate): self { $this->userCreate = $userCreate; return $this; } public function getFolder(): ?Folder { return $this->folder; } public function setFolder(?Folder $folder): self { $this->folder = $folder; return $this; } public function getAttachment(): ?Attachment { return $this->attachment; } public function setAttachment(?Attachment $attachment): self { $this->attachment = $attachment; return $this; } public function getDateCreate(): ?\DateTimeInterface { return $this->dateCreate; } public function setDateCreate(?\DateTimeInterface $dateCreate): self { $this->dateCreate = $dateCreate; return $this; } public function getIsDeleted(): ?bool { return $this->isDeleted; } public function setIsDeleted(?bool $isDeleted): self { $this->isDeleted = $isDeleted; return $this; }}