Skip to content

Commit 0b1defa

Browse files
committed
remove deadly code(fixed #33)
update apidoc,
1 parent b1418c8 commit 0b1defa

File tree

2 files changed

+42
-12
lines changed

2 files changed

+42
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,5 +524,5 @@ try {
524524
Apache V2 License
525525

526526
# JIRA Rest API Documents
527-
* 6.2 - https://docs.atlassian.com/jira/REST/6.2/
527+
* 6.4 - https://docs.atlassian.com/jira/REST/6.4/
528528
* latest - https://docs.atlassian.com/jira/REST/latest/

src/Issue/IssueField.php

Lines changed: 41 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ public function setSummary($summary)
5454
return $this;
5555
}
5656

57+
/**
58+
* set issue reporter name
59+
*
60+
* @param $name name string
61+
* @return $this
62+
*/
5763
public function setReporterName($name)
5864
{
5965
if (is_null($this->reporter)) {
@@ -65,6 +71,13 @@ public function setReporterName($name)
6571
return $this;
6672
}
6773

74+
/**
75+
* set issue assignee name
76+
*
77+
* @param $name
78+
*
79+
* @return $this
80+
*/
6881
public function setAssigneeName($name)
6982
{
7083
if (is_null($this->assignee)) {
@@ -76,6 +89,13 @@ public function setAssigneeName($name)
7689
return $this;
7790
}
7891

92+
/**
93+
* set issue priority name
94+
*
95+
* @param $name string
96+
*
97+
* @return $this
98+
*/
7999
public function setPriorityName($name)
80100
{
81101
if (is_null($this->priority)) {
@@ -100,6 +120,13 @@ public function setDescription($description)
100120
return $this;
101121
}
102122

123+
/**
124+
* add a Affects version
125+
*
126+
* @param $name version name string
127+
*
128+
* @return $this
129+
*/
103130
public function addVersion($name)
104131
{
105132
if (is_null($this->versions)) {
@@ -113,17 +140,13 @@ public function addVersion($name)
113140
return $this;
114141
}
115142

116-
public function addComment($comment)
117-
{
118-
if (is_null($this->comment)) {
119-
$this->comment = new \JiraRestApi\Issue\Comments();
120-
}
121-
122-
array_push($this->versions, $v);
123-
124-
return $this;
125-
}
126-
143+
/**
144+
* add issue label
145+
*
146+
* @param $label string
147+
*
148+
* @return $this
149+
*/
127150
public function addLabel($label)
128151
{
129152
if (is_null($this->labels)) {
@@ -135,6 +158,13 @@ public function addLabel($label)
135158
return $this;
136159
}
137160

161+
/**
162+
* set issue type
163+
*
164+
* @param $name string
165+
*
166+
* @return $this
167+
*/
138168
public function setIssueType($name)
139169
{
140170
if (is_string($name)) {

0 commit comments

Comments
 (0)