src/CoreBundle/Entity/TicketPriority.php
<?php
declare(strict_types=1);
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;
use DateTime;
use Doctrine\ORM\Mapping as ORM;
/**
* Priority.
*/
#[ORM\Table(name: 'ticket_priority')]
#[ORM\Entity]
class TicketPriority
{
#[ORM\Column(name: 'id', type: 'integer')]
#[ORM\Id]
#[ORM\GeneratedValue]
protected ?int $id = null;
#[ORM\Column(name: 'title', type: 'string', length: 255, nullable: false)]
protected string $title;
#[ORM\Column(name: 'code', type: 'string', length: 255, nullable: false)]
protected string $code;
#[ORM\Column(name: 'description', type: 'text', nullable: true)]
protected ?string $description = null;
#[ORM\Column(name: 'color', type: 'string', nullable: false)]
protected string $color;
#[ORM\Column(name: 'urgency', type: 'string', nullable: false)]
protected string $urgency;
#[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;
public function __construct()
{
$this->insertDateTime = new DateTime();
$this->color = '';
$this->urgency = '';
}
/**
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
public function setTitle(string $title): self
{
$this->title = $title;
return $this;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
public function setCode(string $code): self
{
$this->code = $code;
return $this;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
public function setDescription(string $description): self
{
$this->description = $description;
return $this;
}
/**
* @return string
*/
public function getColor()
{
return $this->color;
}
public function setColor(string $color): self
{
$this->color = $color;
return $this;
}
/**
* @return string
*/
public function getUrgency()
{
return $this->urgency;
}
public function setUrgency(string $urgency): self
{
$this->urgency = $urgency;
return $this;
}
/**
* @return int
*/
public function getInsertUserId()
{
return $this->insertUserId;
}
public function setInsertUserId(int $insertUserId): self
{
$this->insertUserId = $insertUserId;
return $this;
}
/**
* @return DateTime
*/
public function getInsertDateTime()
{
return $this->insertDateTime;
}
public function setInsertDateTime(DateTime $insertDateTime): self
{
$this->insertDateTime = $insertDateTime;
return $this;
}
/**
* @return int
*/
public function getLastEditUserId()
{
return $this->lastEditUserId;
}
public function setLastEditUserId(int $lastEditUserId): self
{
$this->lastEditUserId = $lastEditUserId;
return $this;
}
/**
* @return DateTime
*/
public function getLastEditDateTime()
{
return $this->lastEditDateTime;
}
public function setLastEditDateTime(DateTime $lastEditDateTime): self
{
$this->lastEditDateTime = $lastEditDateTime;
return $this;
}
}