diff options
author | Malf Furious <m@lfurio.us> | 2017-06-13 21:56:58 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2017-06-19 23:57:39 -0400 |
commit | fa929cbd64d662126b8734e476bdbbf3562333d4 (patch) | |
tree | 9b892fd195556a809240613389a9af2b93927f43 | |
parent | b8db87d3b814b1845e8282c066a895d9dcb5a0a9 (diff) | |
download | scrott-fa929cbd64d662126b8734e476bdbbf3562333d4.tar.gz scrott-fa929cbd64d662126b8734e476bdbbf3562333d4.zip |
Add issue function getAssignee()
-rw-r--r-- | app/class/issue.class.php | 11 |
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 |