diff --git a/src/Entity/Ticket.php b/src/Entity/Ticket.php index 0249d985..a3704526 100644 --- a/src/Entity/Ticket.php +++ b/src/Entity/Ticket.php @@ -139,9 +139,22 @@ class Ticket */ protected $other_description; + // is it a late documentation? + /** + * @ORM\Column(type="boolean", nullable=true) + */ + protected $flag_late_doc; + + // reason for late documentation + /** + * @ORM\Column(type="text", nullable=true) + */ + protected $late_doc_reason; + public function __construct() { $this->date_create = new DateTime(); + $this->flag_late_doc = false; } public function getID() @@ -354,4 +367,26 @@ class Ticket { return $this->other_description; } + + public function setLateDoc($flag_late_doc = true) + { + $this->flag_late_doc = $flag_late_doc; + return $this; + } + + public function isLateDoc() + { + return $this->flag_late_doc; + } + + public function setLateDocReason($late_doc_reason) + { + $this->late_doc_reason = $late_doc_reason; + return $this; + } + + public function getLateDocReason() + { + return $this->late_doc_reason; + } }