summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2017-06-13 21:56:58 -0400
committerMalf Furious <m@lfurio.us>2017-06-19 23:57:39 -0400
commitfa929cbd64d662126b8734e476bdbbf3562333d4 (patch)
tree9b892fd195556a809240613389a9af2b93927f43 /app
parentb8db87d3b814b1845e8282c066a895d9dcb5a0a9 (diff)
downloadscrott-fa929cbd64d662126b8734e476bdbbf3562333d4.tar.gz
scrott-fa929cbd64d662126b8734e476bdbbf3562333d4.zip
Add issue function getAssignee()
Diffstat (limited to 'app')
-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