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.
298 lines
5.0 KiB
298 lines
5.0 KiB
<?php
|
|
|
|
/* For licensing terms, see /license.txt */
|
|
|
|
namespace Chamilo\CoreBundle\Entity;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
/**
|
|
* Priority.
|
|
*
|
|
* @ORM\Table(name="ticket_priority")
|
|
* @ORM\Entity
|
|
*/
|
|
class TicketPriority
|
|
{
|
|
/**
|
|
* @var int
|
|
*
|
|
* @ORM\Column(name="id", type="integer")
|
|
* @ORM\Id
|
|
* @ORM\GeneratedValue
|
|
*/
|
|
protected $id;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="name", type="string", length=255, nullable=false)
|
|
*/
|
|
protected $name;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="code", type="string", length=255, nullable=false)
|
|
*/
|
|
protected $code;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="description", type="text", nullable=true)
|
|
*/
|
|
protected $description;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="color", type="string", nullable=false)
|
|
*/
|
|
protected $color;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="urgency", type="string", nullable=false)
|
|
*/
|
|
protected $urgency;
|
|
|
|
/**
|
|
* @var int
|
|
*
|
|
* @ORM\Column(name="sys_insert_user_id", type="integer", nullable=false, unique=false)
|
|
*/
|
|
protected $insertUserId;
|
|
|
|
/**
|
|
* @var \DateTime
|
|
*
|
|
* @ORM\Column(name="sys_insert_datetime", type="datetime", nullable=false, unique=false)
|
|
*/
|
|
protected $insertDateTime;
|
|
|
|
/**
|
|
* @var int
|
|
*
|
|
* @ORM\Column(name="sys_lastedit_user_id", type="integer", nullable=true, unique=false)
|
|
*/
|
|
protected $lastEditUserId;
|
|
|
|
/**
|
|
* @var \DateTime
|
|
*
|
|
* @ORM\Column(name="sys_lastedit_datetime", type="datetime", nullable=true, unique=false)
|
|
*/
|
|
protected $lastEditDateTime;
|
|
|
|
/**
|
|
* Priority constructor.
|
|
*/
|
|
public function __construct()
|
|
{
|
|
$this->insertDateTime = new \DateTime();
|
|
$this->color = '';
|
|
$this->urgency = '';
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
/**
|
|
* @param int $id
|
|
*
|
|
* @return TicketPriority
|
|
*/
|
|
public function setId($id)
|
|
{
|
|
$this->id = $id;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
/**
|
|
* @param string $name
|
|
*
|
|
* @return TicketPriority
|
|
*/
|
|
public function setName($name)
|
|
{
|
|
$this->name = $name;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getCode()
|
|
{
|
|
return $this->code;
|
|
}
|
|
|
|
/**
|
|
* @param string $code
|
|
*
|
|
* @return TicketPriority
|
|
*/
|
|
public function setCode($code)
|
|
{
|
|
$this->code = $code;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getDescription()
|
|
{
|
|
return $this->description;
|
|
}
|
|
|
|
/**
|
|
* @param string $description
|
|
*
|
|
* @return TicketPriority
|
|
*/
|
|
public function setDescription($description)
|
|
{
|
|
$this->description = $description;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getColor()
|
|
{
|
|
return $this->color;
|
|
}
|
|
|
|
/**
|
|
* @param string $color
|
|
*
|
|
* @return TicketPriority
|
|
*/
|
|
public function setColor($color)
|
|
{
|
|
$this->color = $color;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getUrgency()
|
|
{
|
|
return $this->urgency;
|
|
}
|
|
|
|
/**
|
|
* @param string $urgency
|
|
*
|
|
* @return TicketPriority
|
|
*/
|
|
public function setUrgency($urgency)
|
|
{
|
|
$this->urgency = $urgency;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getInsertUserId()
|
|
{
|
|
return $this->insertUserId;
|
|
}
|
|
|
|
/**
|
|
* @param int $insertUserId
|
|
*
|
|
* @return TicketPriority
|
|
*/
|
|
public function setInsertUserId($insertUserId)
|
|
{
|
|
$this->insertUserId = $insertUserId;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return \DateTime
|
|
*/
|
|
public function getInsertDateTime()
|
|
{
|
|
return $this->insertDateTime;
|
|
}
|
|
|
|
/**
|
|
* @param \DateTime $insertDateTime
|
|
*
|
|
* @return TicketPriority
|
|
*/
|
|
public function setInsertDateTime($insertDateTime)
|
|
{
|
|
$this->insertDateTime = $insertDateTime;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getLastEditUserId()
|
|
{
|
|
return $this->lastEditUserId;
|
|
}
|
|
|
|
/**
|
|
* @param int $lastEditUserId
|
|
*
|
|
* @return TicketPriority
|
|
*/
|
|
public function setLastEditUserId($lastEditUserId)
|
|
{
|
|
$this->lastEditUserId = $lastEditUserId;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return \DateTime
|
|
*/
|
|
public function getLastEditDateTime()
|
|
{
|
|
return $this->lastEditDateTime;
|
|
}
|
|
|
|
/**
|
|
* @param \DateTime $lastEditDateTime
|
|
*
|
|
* @return TicketPriority
|
|
*/
|
|
public function setLastEditDateTime($lastEditDateTime)
|
|
{
|
|
$this->lastEditDateTime = $lastEditDateTime;
|
|
|
|
return $this;
|
|
}
|
|
}
|
|
|