src/CoreBundle/Entity/TicketProject.php
<?php
declare(strict_types=1);
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;
use DateTime;
use Doctrine\ORM\Mapping as ORM;
/**
* Project.
*/
#[ORM\Table(name: 'ticket_project')]
#[ORM\Entity]
class TicketProject
{
#[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: 'description', type: 'text', nullable: true)]
protected ?string $description = null;
#[ORM\Column(name: 'email', type: 'string', nullable: true)]
protected ?string $email = null;
#[ORM\Column(name: 'other_area', type: 'integer', nullable: true)]
protected ?string $otherArea = null;
#[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();
}
/**
* @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 getDescription()
{
return $this->description;
}
public function setDescription(string $description): self
{
$this->description = $description;
return $this;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
public function setEmail(string $email): self
{
$this->email = $email;
return $this;
}
/**
* @return string
*/
public function getOtherArea()
{
return $this->otherArea;
}
public function setOtherArea(string $otherArea): self
{
$this->otherArea = $otherArea;
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;
}
}