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.
151 lines
2.8 KiB
151 lines
2.8 KiB
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/* For licensing terms, see /license.txt */
|
|
|
|
namespace Chamilo\CoreBundle\Entity;
|
|
|
|
use DateTime;
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
/**
|
|
* @ORM\Table(name="ticket_message_attachments")
|
|
* @ORM\Entity
|
|
*/
|
|
class TicketMessageAttachment
|
|
{
|
|
/**
|
|
* @ORM\Column(name="id", type="integer")
|
|
* @ORM\Id
|
|
* @ORM\GeneratedValue
|
|
*/
|
|
protected int $id;
|
|
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\Ticket")
|
|
* @ORM\JoinColumn(name="ticket_id", referencedColumnName="id")
|
|
*/
|
|
protected Ticket $ticket;
|
|
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity="TicketMessage")
|
|
* @ORM\JoinColumn(name="message_id", referencedColumnName="id")
|
|
*/
|
|
protected TicketMessage $message;
|
|
|
|
/**
|
|
* @ORM\Column(name="path", type="string", length=255, nullable=false)
|
|
*/
|
|
protected string $path;
|
|
|
|
/**
|
|
* @ORM\Column(name="filename", type="text", nullable=false)
|
|
*/
|
|
protected string $filename;
|
|
|
|
/**
|
|
* @ORM\Column(name="size", type="integer")
|
|
*/
|
|
protected int $size;
|
|
|
|
/**
|
|
* @ORM\Column(name="sys_insert_user_id", type="integer")
|
|
*/
|
|
protected int $insertUserId;
|
|
|
|
/**
|
|
* @ORM\Column(name="sys_insert_datetime", type="datetime")
|
|
*/
|
|
protected DateTime $insertDateTime;
|
|
|
|
/**
|
|
* @ORM\Column(name="sys_lastedit_user_id", type="integer", nullable=true, unique=false)
|
|
*/
|
|
protected ?int $lastEditUserId = null;
|
|
|
|
/**
|
|
* @ORM\Column(name="sys_lastedit_datetime", type="datetime", nullable=true, unique=false)
|
|
*/
|
|
protected ?DateTime $lastEditDateTime = null;
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
/**
|
|
* @return TicketMessage
|
|
*/
|
|
public function getMessage()
|
|
{
|
|
return $this->message;
|
|
}
|
|
|
|
/**
|
|
* @return TicketMessageAttachment
|
|
*/
|
|
public function setMessage(TicketMessage $message)
|
|
{
|
|
$this->message = $message;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getPath()
|
|
{
|
|
return $this->path;
|
|
}
|
|
|
|
/**
|
|
* @return TicketMessageAttachment
|
|
*/
|
|
public function setPath(string $path)
|
|
{
|
|
$this->path = $path;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getFilename()
|
|
{
|
|
return $this->filename;
|
|
}
|
|
|
|
/**
|
|
* @return TicketMessageAttachment
|
|
*/
|
|
public function setFilename(string $filename)
|
|
{
|
|
$this->filename = $filename;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getSize()
|
|
{
|
|
return $this->size;
|
|
}
|
|
|
|
/**
|
|
* @return TicketMessageAttachment
|
|
*/
|
|
public function setSize(int $size)
|
|
{
|
|
$this->size = $size;
|
|
|
|
return $this;
|
|
}
|
|
}
|
|
|