You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
184 lines
3.1 KiB
184 lines
3.1 KiB
<?php
|
|
|
|
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
/**
|
|
* EntityMessageAttachment
|
|
*
|
|
* @Table(name="message_attachment")
|
|
* @Entity
|
|
*/
|
|
class EntityMessageAttachment
|
|
{
|
|
/**
|
|
* @var integer
|
|
*
|
|
* @Column(name="id", type="integer", precision=0, scale=0, nullable=false, unique=false)
|
|
* @Id
|
|
* @GeneratedValue(strategy="IDENTITY")
|
|
*/
|
|
private $id;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @Column(name="path", type="string", length=255, precision=0, scale=0, nullable=false, unique=false)
|
|
*/
|
|
private $path;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @Column(name="comment", type="text", precision=0, scale=0, nullable=true, unique=false)
|
|
*/
|
|
private $comment;
|
|
|
|
/**
|
|
* @var integer
|
|
*
|
|
* @Column(name="size", type="integer", precision=0, scale=0, nullable=false, unique=false)
|
|
*/
|
|
private $size;
|
|
|
|
/**
|
|
* @var integer
|
|
*
|
|
* @Column(name="message_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
|
|
*/
|
|
private $messageId;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @Column(name="filename", type="string", length=255, precision=0, scale=0, nullable=false, unique=false)
|
|
*/
|
|
private $filename;
|
|
|
|
|
|
/**
|
|
* Get id
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
/**
|
|
* Set path
|
|
*
|
|
* @param string $path
|
|
* @return EntityMessageAttachment
|
|
*/
|
|
public function setPath($path)
|
|
{
|
|
$this->path = $path;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get path
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getPath()
|
|
{
|
|
return $this->path;
|
|
}
|
|
|
|
/**
|
|
* Set comment
|
|
*
|
|
* @param string $comment
|
|
* @return EntityMessageAttachment
|
|
*/
|
|
public function setComment($comment)
|
|
{
|
|
$this->comment = $comment;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get comment
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getComment()
|
|
{
|
|
return $this->comment;
|
|
}
|
|
|
|
/**
|
|
* Set size
|
|
*
|
|
* @param integer $size
|
|
* @return EntityMessageAttachment
|
|
*/
|
|
public function setSize($size)
|
|
{
|
|
$this->size = $size;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get size
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getSize()
|
|
{
|
|
return $this->size;
|
|
}
|
|
|
|
/**
|
|
* Set messageId
|
|
*
|
|
* @param integer $messageId
|
|
* @return EntityMessageAttachment
|
|
*/
|
|
public function setMessageId($messageId)
|
|
{
|
|
$this->messageId = $messageId;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get messageId
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getMessageId()
|
|
{
|
|
return $this->messageId;
|
|
}
|
|
|
|
/**
|
|
* Set filename
|
|
*
|
|
* @param string $filename
|
|
* @return EntityMessageAttachment
|
|
*/
|
|
public function setFilename($filename)
|
|
{
|
|
$this->filename = $filename;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get filename
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getFilename()
|
|
{
|
|
return $this->filename;
|
|
}
|
|
}
|
|
|