<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\InquiryFileRepository")
*/
class InquiryFile implements FileInterface
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=128)
*/
private $originalFileName;
/**
* @ORM\Column(type="string", length=255)
*/
private $filePath;
/**
* @ORM\Column(type="string", length=16)
*/
private $fileType;
/**
* @ORM\Column(type="string", length=32)
*/
private $fileKind;
/**
* @ORM\Column(type="string", length=255)
*/
private $mimeType;
/**
* @ORM\Column(type="integer", nullable=true)
*/
protected $width;
/**
* @ORM\Column(type="integer", nullable=true)
*/
protected $height;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Inquiry", inversedBy="inquiryFiles")
* @ORM\JoinColumn(nullable=true)
*/
private $inquiry;
/**
* @ORM\Column(type="string", length=1024, nullable=true)
*/
protected $url = null;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
protected $urlValidityDate = null;
/**
* @ORM\Column(type="boolean", options={"default" : false})
*/
protected $sentToGoogleStorage = null;
public function setId($id): void
{
$this->id = $id;
}
public function getId(): ?int
{
return $this->id;
}
public function getOriginalFileName(): ?string
{
return $this->originalFileName;
}
public function setOriginalFileName(string $originalFileName): self
{
$this->originalFileName = $originalFileName;
return $this;
}
public function getFilePath(): ?string
{
return $this->filePath;
}
public function setFilePath(string $filePath): self
{
$this->filePath = $filePath;
return $this;
}
public function getFileType(): ?string
{
return $this->fileType;
}
public function setFileType(string $fileType): self
{
$this->fileType = $fileType;
return $this;
}
public function getFileKind(): ?string
{
return $this->fileKind;
}
public function setFileKind(string $fileKind): self
{
$this->fileKind = $fileKind;
return $this;
}
public function getMimeType(): ?string
{
return $this->mimeType;
}
public function setMimeType(string $mimeType): self
{
$this->mimeType = $mimeType;
return $this;
}
public function getInquiry(): ?Inquiry
{
return $this->inquiry;
}
public function setInquiry(?Inquiry $inquiry): self
{
$this->inquiry = $inquiry;
return $this;
}
/** @return mixed */
public function getWidth()
{
return $this->width;
}
/** @return mixed */
public function getHeight()
{
return $this->height;
}
/** @param mixed $width */
public function setWidth($width): void
{
$this->width = $width;
}
/** @param mixed $height */
public function setHeight($height): void
{
$this->height = $height;
}
public function getUrl()
{
return $this->url;
}
public function getUrlValidityDate()
{
return $this->urlValidityDate;
}
public function setUrl($url): void
{
$this->url = $url;
}
public function setUrlValidityDate($urlValidityDate): void
{
$this->urlValidityDate = $urlValidityDate;
}
public function setSentToGoogleStorage($sentToGoogleStorage): void
{
$this->sentToGoogleStorage = $sentToGoogleStorage;
}
public function getSentToGoogleStorage()
{
return $this->sentToGoogleStorage;
}
}