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.
199 lines
3.6 KiB
199 lines
3.6 KiB
<?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;
|
|
|
|
/**
|
|
* @ORM\Column(name="name", type="string", length=255, nullable=false)
|
|
*/
|
|
protected string $name;
|
|
|
|
/**
|
|
* @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 getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
public function setName(string $name): self
|
|
{
|
|
$this->name = $name;
|
|
|
|
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;
|
|
}
|
|
}
|
|
|