From 008a8a7f19bba6d2a2c11d17c238748a522bbb1b Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Tue, 31 May 2016 15:20:19 +0200 Subject: [PATCH] Add setters/getters --- src/Chamilo/TicketBundle/Entity/Priority.php | 200 +++++++++++++++++++ src/Chamilo/TicketBundle/Entity/Project.php | 183 ++++++++++++++++- src/Chamilo/TicketBundle/Entity/Status.php | 78 ++++++++ 3 files changed, 460 insertions(+), 1 deletion(-) diff --git a/src/Chamilo/TicketBundle/Entity/Priority.php b/src/Chamilo/TicketBundle/Entity/Priority.php index e521df5520..48eb259683 100644 --- a/src/Chamilo/TicketBundle/Entity/Priority.php +++ b/src/Chamilo/TicketBundle/Entity/Priority.php @@ -87,4 +87,204 @@ class Priority * @ORM\Column(name="sys_lastedit_datetime", type="datetime", nullable=true, unique=false) */ protected $lastEditDateTime; + + /** + * Priority constructor. + */ + public function __construct() + { + $this->insertDateTime = new \DateTime(); + } + + /** + * @return int + */ + public function getId() + { + return $this->id; + } + + /** + * @param int $id + * @return Priority + */ + public function setId($id) + { + $this->id = $id; + + return $this; + } + + /** + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * @param string $name + * @return Priority + */ + public function setName($name) + { + $this->name = $name; + + return $this; + } + + /** + * @return string + */ + public function getCode() + { + return $this->code; + } + + /** + * @param string $code + * @return Priority + */ + public function setCode($code) + { + $this->code = $code; + + return $this; + } + + /** + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * @param string $description + * @return Priority + */ + public function setDescription($description) + { + $this->description = $description; + + return $this; + } + + /** + * @return string + */ + public function getColor() + { + return $this->color; + } + + /** + * @param string $color + * @return Priority + */ + public function setColor($color) + { + $this->color = $color; + + return $this; + } + + /** + * @return string + */ + public function getUrgency() + { + return $this->urgency; + } + + /** + * @param string $urgency + * @return Priority + */ + public function setUrgency($urgency) + { + $this->urgency = $urgency; + + return $this; + } + + /** + * @return int + */ + public function getInsertUserId() + { + return $this->insertUserId; + } + + /** + * @param int $insertUserId + * @return Priority + */ + public function setInsertUserId($insertUserId) + { + $this->insertUserId = $insertUserId; + + return $this; + } + + /** + * @return \DateTime + */ + public function getInsertDateTime() + { + return $this->insertDateTime; + } + + /** + * @param \DateTime $insertDateTime + * @return Priority + */ + public function setInsertDateTime($insertDateTime) + { + $this->insertDateTime = $insertDateTime; + + return $this; + } + + /** + * @return int + */ + public function getLastEditUserId() + { + return $this->lastEditUserId; + } + + /** + * @param int $lastEditUserId + * @return Priority + */ + public function setLastEditUserId($lastEditUserId) + { + $this->lastEditUserId = $lastEditUserId; + + return $this; + } + + /** + * @return \DateTime + */ + public function getLastEditDateTime() + { + return $this->lastEditDateTime; + } + + /** + * @param \DateTime $lastEditDateTime + * @return Priority + */ + public function setLastEditDateTime($lastEditDateTime) + { + $this->lastEditDateTime = $lastEditDateTime; + + return $this; + } + + } diff --git a/src/Chamilo/TicketBundle/Entity/Project.php b/src/Chamilo/TicketBundle/Entity/Project.php index 09888b519f..b2197711d2 100644 --- a/src/Chamilo/TicketBundle/Entity/Project.php +++ b/src/Chamilo/TicketBundle/Entity/Project.php @@ -59,7 +59,7 @@ class Project * @ORM\Column(name="sys_insert_user_id", type="integer", nullable=false, unique=false) */ protected $insertUserId; - + /** * @var \DateTime * @@ -80,4 +80,185 @@ class Project * @ORM\Column(name="sys_lastedit_datetime", type="datetime", nullable=true, unique=false) */ protected $lastEditDateTime; + + /** + * Project constructor. + */ + public function __construct() + { + $this->insertDateTime = new \DateTime(); + } + + /** + * @return int + */ + public function getId() + { + return $this->id; + } + + /** + * @param int $id + * @return Project + */ + public function setId($id) + { + $this->id = $id; + + return $this; + } + + /** + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * @param string $name + * @return Project + */ + public function setName($name) + { + $this->name = $name; + + return $this; + } + + /** + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * @param string $description + * @return Project + */ + public function setDescription($description) + { + $this->description = $description; + + return $this; + } + + /** + * @return string + */ + public function getEmail() + { + return $this->email; + } + + /** + * @param string $email + * @return Project + */ + public function setEmail($email) + { + $this->email = $email; + + return $this; + } + + /** + * @return string + */ + public function getOtherArea() + { + return $this->otherArea; + } + + /** + * @param string $otherArea + * @return Project + */ + public function setOtherArea($otherArea) + { + $this->otherArea = $otherArea; + + return $this; + } + + /** + * @return int + */ + public function getInsertUserId() + { + return $this->insertUserId; + } + + /** + * @param int $insertUserId + * @return Project + */ + public function setInsertUserId($insertUserId) + { + $this->insertUserId = $insertUserId; + + return $this; + } + + /** + * @return \DateTime + */ + public function getInsertDateTime() + { + return $this->insertDateTime; + } + + /** + * @param \DateTime $insertDateTime + * @return Project + */ + public function setInsertDateTime($insertDateTime) + { + $this->insertDateTime = $insertDateTime; + + return $this; + } + + /** + * @return int + */ + public function getLastEditUserId() + { + return $this->lastEditUserId; + } + + /** + * @param int $lastEditUserId + * @return Project + */ + public function setLastEditUserId($lastEditUserId) + { + $this->lastEditUserId = $lastEditUserId; + + return $this; + } + + /** + * @return \DateTime + */ + public function getLastEditDateTime() + { + return $this->lastEditDateTime; + } + + /** + * @param \DateTime $lastEditDateTime + * @return Project + */ + public function setLastEditDateTime($lastEditDateTime) + { + $this->lastEditDateTime = $lastEditDateTime; + + return $this; + } + + } diff --git a/src/Chamilo/TicketBundle/Entity/Status.php b/src/Chamilo/TicketBundle/Entity/Status.php index 3c690d8fbd..474d46a71a 100644 --- a/src/Chamilo/TicketBundle/Entity/Status.php +++ b/src/Chamilo/TicketBundle/Entity/Status.php @@ -45,4 +45,82 @@ class Status * @ORM\Column(name="description", type="text", nullable=true) */ protected $description; + + /** + * @return int + */ + public function getId() + { + return $this->id; + } + + /** + * @param int $id + * @return Status + */ + public function setId($id) + { + $this->id = $id; + + return $this; + } + + /** + * @return string + */ + public function getCode() + { + return $this->code; + } + + /** + * @param string $code + * @return Status + */ + public function setCode($code) + { + $this->code = $code; + + return $this; + } + + /** + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * @param string $name + * @return Status + */ + public function setName($name) + { + $this->name = $name; + + return $this; + } + + /** + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * @param string $description + * @return Status + */ + public function setDescription($description) + { + $this->description = $description; + + return $this; + } + + }