|
|
|
|
@ -88,4 +88,193 @@ class Category |
|
|
|
|
* @ORM\Column(name="sys_lastedit_datetime", type="datetime", nullable=true, unique=false) |
|
|
|
|
*/ |
|
|
|
|
protected $lastEditDateTime; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Category constructor. |
|
|
|
|
*/ |
|
|
|
|
public function __construct() |
|
|
|
|
{ |
|
|
|
|
$this->totalTickets = 0; |
|
|
|
|
$this->insertDateTime = new \DateTime(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @return int |
|
|
|
|
*/ |
|
|
|
|
public function getId() |
|
|
|
|
{ |
|
|
|
|
return $this->id; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @param int $id |
|
|
|
|
* @return Category |
|
|
|
|
*/ |
|
|
|
|
public function setId($id) |
|
|
|
|
{ |
|
|
|
|
$this->id = $id; |
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @return string |
|
|
|
|
*/ |
|
|
|
|
public function getName() |
|
|
|
|
{ |
|
|
|
|
return $this->name; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @param string $name |
|
|
|
|
* @return Category |
|
|
|
|
*/ |
|
|
|
|
public function setName($name) |
|
|
|
|
{ |
|
|
|
|
$this->name = $name; |
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @return string |
|
|
|
|
*/ |
|
|
|
|
public function getDescription() |
|
|
|
|
{ |
|
|
|
|
return $this->description; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @param string $description |
|
|
|
|
* @return Category |
|
|
|
|
*/ |
|
|
|
|
public function setDescription($description) |
|
|
|
|
{ |
|
|
|
|
$this->description = $description; |
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @return int |
|
|
|
|
*/ |
|
|
|
|
public function getTotalTickets() |
|
|
|
|
{ |
|
|
|
|
return $this->totalTickets; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @param int $totalTickets |
|
|
|
|
* @return Category |
|
|
|
|
*/ |
|
|
|
|
public function setTotalTickets($totalTickets) |
|
|
|
|
{ |
|
|
|
|
$this->totalTickets = $totalTickets; |
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @return boolean |
|
|
|
|
*/ |
|
|
|
|
public function isCourseRequired() |
|
|
|
|
{ |
|
|
|
|
return $this->courseRequired; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @param boolean $courseRequired |
|
|
|
|
* @return Category |
|
|
|
|
*/ |
|
|
|
|
public function setCourseRequired($courseRequired) |
|
|
|
|
{ |
|
|
|
|
$this->courseRequired = $courseRequired; |
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @return Project |
|
|
|
|
*/ |
|
|
|
|
public function getProject() |
|
|
|
|
{ |
|
|
|
|
return $this->project; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @param Project $project |
|
|
|
|
* @return Category |
|
|
|
|
*/ |
|
|
|
|
public function setProject($project) |
|
|
|
|
{ |
|
|
|
|
$this->project = $project; |
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @return int |
|
|
|
|
*/ |
|
|
|
|
public function getInsertUserId() |
|
|
|
|
{ |
|
|
|
|
return $this->insertUserId; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @param int $insertUserId |
|
|
|
|
* @return Category |
|
|
|
|
*/ |
|
|
|
|
public function setInsertUserId($insertUserId) |
|
|
|
|
{ |
|
|
|
|
$this->insertUserId = $insertUserId; |
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @return \DateTime |
|
|
|
|
*/ |
|
|
|
|
public function getInsertDateTime() |
|
|
|
|
{ |
|
|
|
|
return $this->insertDateTime; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @param \DateTime $insertDateTime |
|
|
|
|
* @return Category |
|
|
|
|
*/ |
|
|
|
|
public function setInsertDateTime($insertDateTime) |
|
|
|
|
{ |
|
|
|
|
$this->insertDateTime = $insertDateTime; |
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @return int |
|
|
|
|
*/ |
|
|
|
|
public function getLastEditUserId() |
|
|
|
|
{ |
|
|
|
|
return $this->lastEditUserId; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @param int $lastEditUserId |
|
|
|
|
* @return Category |
|
|
|
|
*/ |
|
|
|
|
public function setLastEditUserId($lastEditUserId) |
|
|
|
|
{ |
|
|
|
|
$this->lastEditUserId = $lastEditUserId; |
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @return \DateTime |
|
|
|
|
*/ |
|
|
|
|
public function getLastEditDateTime() |
|
|
|
|
{ |
|
|
|
|
return $this->lastEditDateTime; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @param \DateTime $lastEditDateTime |
|
|
|
|
* @return Category |
|
|
|
|
*/ |
|
|
|
|
public function setLastEditDateTime($lastEditDateTime) |
|
|
|
|
{ |
|
|
|
|
$this->lastEditDateTime = $lastEditDateTime; |
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|