Chamilo is a learning management system focused on ease of use and accessibility
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.
 
 
 
 
 
 
chamilo-lms/src/CoreBundle/Entity/MessageAttachment.php

188 lines
3.0 KiB

<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* MessageAttachment.
*
* @ORM\Table(name="message_attachment")
* @ORM\Entity
*/
class MessageAttachment
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
protected $id;
/**
* @var string
*
* @ORM\Column(name="path", type="string", length=255, nullable=false)
*/
protected $path;
/**
* @var string
*
* @ORM\Column(name="comment", type="text", nullable=true)
*/
protected $comment;
/**
* @var int
*
* @ORM\Column(name="size", type="integer", nullable=false)
*/
protected $size;
/**
* @var Message
*
* @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\Message", inversedBy="attachments")
* @ORM\JoinColumn(name="message_id", referencedColumnName="id", nullable=false)
*/
protected $message;
/**
* @var string
*
* @ORM\Column(name="filename", type="string", length=255, nullable=false)
*/
protected $filename;
/**
* Set path.
*
* @param string $path
*
* @return MessageAttachment
*/
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 MessageAttachment
*/
public function setComment($comment)
{
$this->comment = $comment;
return $this;
}
/**
* Get comment.
*
* @return string
*/
public function getComment()
{
return $this->comment;
}
/**
* Set size.
*
* @param int $size
*
* @return MessageAttachment
*/
public function setSize($size)
{
$this->size = $size;
return $this;
}
/**
* Get size.
*
* @return int
*/
public function getSize()
{
return $this->size;
}
/**
* Set message.
*
* @return MessageAttachment
*/
public function setMessage(Message $message)
{
$this->message = $message;
return $this;
}
/**
* Get message.
*
* @return Message
*/
public function getMessage()
{
return $this->message;
}
/**
* Set filename.
*
* @param string $filename
*
* @return MessageAttachment
*/
public function setFilename($filename)
{
$this->filename = $filename;
return $this;
}
/**
* Get filename.
*
* @return string
*/
public function getFilename()
{
return $this->filename;
}
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
}