src/Entity/PrivateMessageAttachment.php line 10

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