<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
*/
class PrivateMessageAttachment implements FileInterface
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
protected $id;
/**
* @ORM\Column(name="original_file_name", nullable=false, length=255)
*/
protected $originalFileName;
/**
* @ORM\Column(name="file_path", nullable=false, length=255)
*/
protected $filePath;
/**
* @ORM\Column(name="file_type", nullable=false, length=255)
*/
protected $fileType;
/**
* @ORM\Column(name="mime_type", nullable=false, length=255)
*/
protected $mimeType;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\PrivateMessage", inversedBy="attachmentFiles")
* @ORM\JoinColumn(nullable=false)
*/
private $privateMessage;
/**
* @ORM\Column(type="integer", nullable=true)
*/
protected $width;
/**
* @ORM\Column(type="integer", nullable=true)
*/
protected $height;
/**
* @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 getId()
{
return $this->id;
}
public function getOriginalFileName()
{
return $this->originalFileName;
}
public function setOriginalFileName(string $originalFileName)
{
$this->originalFileName = $originalFileName;
return $this;
}
public function getFilePath()
{
return $this->filePath;
}
public function setFilePath(string $filePath)
{
$this->filePath = $filePath;
return $this;
}
public function getFileType()
{
return $this->fileType;
}
public function setFileType(string $fileType)
{
$this->fileType = $fileType;
return $this;
}
public function getMimeType()
{
return $this->mimeType;
}
public function setMimeType(string $mimeType)
{
$this->mimeType = $mimeType;
return $this;
}
/**
* @return mixed
*/
public function getPrivateMessage()
{
return $this->privateMessage;
}
/**
* @param mixed $privateMessage
*/
public function setPrivateMessage($privateMessage)
{
$this->privateMessage = $privateMessage;
}
/** @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;
}
}