File tree 3 files changed +38
-3
lines changed
3 files changed +38
-3
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Jira \Api \Issue ;
4
+
5
+ class Assignee implements \JsonSerializable
6
+ {
7
+ /* @var string */
8
+ public $ self ;
9
+
10
+ /* @var string */
11
+ public $ name ;
12
+
13
+ /* @var string */
14
+ public $ key ;
15
+
16
+ /* @var string */
17
+ public $ emailAddress ;
18
+
19
+ /* @var string */
20
+ public $ avatarUrls ;
21
+
22
+ /* @var string */
23
+ public $ displayName ;
24
+
25
+ /* @var string */
26
+ public $ active ;
27
+
28
+ public function jsonSerialize ()
29
+ {
30
+ return array_filter (get_object_vars ($ this ));
31
+ }
32
+ }
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public function __construct($updateIssue = false)
27
27
if ($ updateIssue != true ) {
28
28
$ this ->project = new \Jira \Api \Project \Project ();
29
29
30
- $ this ->assignee = new \Jira \Api \Issue \Reporter ();
30
+ $ this ->assignee = new \Jira \Api \Issue \Assignee ();
31
31
$ this ->priority = new \Jira \Api \Issue \Priority ();
32
32
$ this ->versions = array ();
33
33
@@ -98,7 +98,7 @@ public function setWorklog($wl)
98
98
public function setAssigneeName ($ name )
99
99
{
100
100
if (is_null ($ this ->assignee )) {
101
- $ this ->assignee = new \Jira \Api \Issue \Reporter ();
101
+ $ this ->assignee = new \Jira \Api \Issue \Assignee ();
102
102
}
103
103
104
104
$ this ->assignee ->name = $ name ;
@@ -249,7 +249,7 @@ public function getIssueType()
249
249
/** @var Worklogs */
250
250
public $ worklog ;
251
251
252
- /** @var Reporter */
252
+ /** @var Assignee */
253
253
public $ assignee ;
254
254
255
255
/** @var \Jira\Api\Issue\Version[] */
Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ class Reporter implements \JsonSerializable
10
10
/* @var string */
11
11
public $ name ;
12
12
13
+ /* @var string */
14
+ public $ key ;
15
+
13
16
/* @var string */
14
17
public $ emailAddress ;
15
18
You can’t perform that action at this time.
0 commit comments