src/Entity/InquiryFile.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\InquiryFileRepository")
  6.  */
  7. class InquiryFile implements FileInterface
  8. {
  9.     /**
  10.      * @ORM\Id()
  11.      * @ORM\GeneratedValue()
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\Column(type="string", length=128)
  17.      */
  18.     private $originalFileName;
  19.     /**
  20.      * @ORM\Column(type="string", length=255)
  21.      */
  22.     private $filePath;
  23.     /**
  24.      * @ORM\Column(type="string", length=16)
  25.      */
  26.     private $fileType;
  27.     /**
  28.      * @ORM\Column(type="string", length=32)
  29.      */
  30.     private $fileKind;
  31.     /**
  32.      * @ORM\Column(type="string", length=255)
  33.      */
  34.     private $mimeType;
  35.     /**
  36.      * @ORM\Column(type="integer", nullable=true)
  37.      */
  38.     protected $width;
  39.     /**
  40.      * @ORM\Column(type="integer", nullable=true)
  41.      */
  42.     protected $height;
  43.     /**
  44.      * @ORM\ManyToOne(targetEntity="App\Entity\Inquiry", inversedBy="inquiryFiles")
  45.      * @ORM\JoinColumn(nullable=true)
  46.      */
  47.     private $inquiry;
  48.     /**
  49.      * @ORM\Column(type="string", length=1024, nullable=true)
  50.      */
  51.     protected $url null;
  52.     /**
  53.      * @ORM\Column(type="datetime", nullable=true)
  54.      */
  55.     protected $urlValidityDate null;
  56.     /**
  57.      * @ORM\Column(type="boolean", options={"default" : false})
  58.      */
  59.     protected $sentToGoogleStorage null;
  60.     public function setId($id): void
  61.     {
  62.         $this->id $id;
  63.     }
  64.     public function getId(): ?int
  65.     {
  66.         return $this->id;
  67.     }
  68.     public function getOriginalFileName(): ?string
  69.     {
  70.         return $this->originalFileName;
  71.     }
  72.     public function setOriginalFileName(string $originalFileName): self
  73.     {
  74.         $this->originalFileName $originalFileName;
  75.         return $this;
  76.     }
  77.     public function getFilePath(): ?string
  78.     {
  79.         return $this->filePath;
  80.     }
  81.     public function setFilePath(string $filePath): self
  82.     {
  83.         $this->filePath $filePath;
  84.         return $this;
  85.     }
  86.     public function getFileType(): ?string
  87.     {
  88.         return $this->fileType;
  89.     }
  90.     public function setFileType(string $fileType): self
  91.     {
  92.         $this->fileType $fileType;
  93.         return $this;
  94.     }
  95.     public function getFileKind(): ?string
  96.     {
  97.         return $this->fileKind;
  98.     }
  99.     public function setFileKind(string $fileKind): self
  100.     {
  101.         $this->fileKind $fileKind;
  102.         return $this;
  103.     }
  104.     public function getMimeType(): ?string
  105.     {
  106.         return $this->mimeType;
  107.     }
  108.     public function setMimeType(string $mimeType): self
  109.     {
  110.         $this->mimeType $mimeType;
  111.         return $this;
  112.     }
  113.     public function getInquiry(): ?Inquiry
  114.     {
  115.         return $this->inquiry;
  116.     }
  117.     public function setInquiry(?Inquiry $inquiry): self
  118.     {
  119.         $this->inquiry $inquiry;
  120.         return $this;
  121.     }
  122.     /** @return mixed */
  123.     public function getWidth()
  124.     {
  125.         return $this->width;
  126.     }
  127.     /** @return mixed */
  128.     public function getHeight()
  129.     {
  130.         return $this->height;
  131.     }
  132.     /** @param mixed $width */
  133.     public function setWidth($width): void
  134.     {
  135.         $this->width $width;
  136.     }
  137.     /** @param mixed $height */
  138.     public function setHeight($height): void
  139.     {
  140.         $this->height $height;
  141.     }
  142.     public function getUrl()
  143.     {
  144.         return $this->url;
  145.     }
  146.     public function getUrlValidityDate()
  147.     {
  148.         return $this->urlValidityDate;
  149.     }
  150.     public function setUrl($url): void
  151.     {
  152.         $this->url $url;
  153.     }
  154.     public function setUrlValidityDate($urlValidityDate): void
  155.     {
  156.         $this->urlValidityDate $urlValidityDate;
  157.     }
  158.     public function setSentToGoogleStorage($sentToGoogleStorage): void
  159.     {
  160.         $this->sentToGoogleStorage $sentToGoogleStorage;
  161.     }
  162.     public function getSentToGoogleStorage()
  163.     {
  164.         return $this->sentToGoogleStorage;
  165.     }
  166. }