summaryrefslogtreecommitdiffstats
path: root/app/class/issue.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/class/issue.class.php')
-rw-r--r--app/class/issue.class.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/class/issue.class.php b/app/class/issue.class.php
index 6056457..c3381a7 100644
--- a/app/class/issue.class.php
+++ b/app/class/issue.class.php
@@ -63,6 +63,17 @@ class issue extends object
}
/*
+ * Get the assignee for this issue
+ */
+ public function getAssignee() : ?user
+ {
+ if (!isset($this->assignee) || $this->assignee == "")
+ return NULL;
+
+ return new user($this->assignee);
+ }
+
+ /*
* Reset the seen flag and reassign this issue.
*/
public function assignTo(user $assignee) : void