@@ -45,7 +45,7 @@ public function getAllProjects($paramArray = [])
45
45
*
46
46
* @return Project
47
47
*/
48
- public function get ($ projectIdOrKey ) : Project
48
+ public function get ($ projectIdOrKey ): Project
49
49
{
50
50
$ ret = $ this ->exec ($ this ->uri ."/ $ projectIdOrKey " , null );
51
51
@@ -65,11 +65,11 @@ public function get($projectIdOrKey) : Project
65
65
*
66
66
* @param int|string $projectIdOrKey Project Key
67
67
*
68
- * @return Reporter[]
69
68
*@throws \JiraRestApi\JiraException
70
69
*
70
+ * @return Reporter[]
71
71
*/
72
- public function getAssignable (int |string $ projectIdOrKey ) : array
72
+ public function getAssignable (int |string $ projectIdOrKey ): array
73
73
{
74
74
$ ret = $ this ->exec ("/user/assignable/search?project= $ projectIdOrKey " , null );
75
75
$ json = json_decode ($ ret );
@@ -83,11 +83,11 @@ public function getAssignable(int|string $projectIdOrKey) : array
83
83
/**
84
84
* @param int|string $projectIdOrKey
85
85
*
86
- * @return IssueType[]
87
86
*@throws \JiraRestApi\JiraException
88
87
*
88
+ * @return IssueType[]
89
89
*/
90
- public function getStatuses (int |string $ projectIdOrKey ) : array
90
+ public function getStatuses (int |string $ projectIdOrKey ): array
91
91
{
92
92
$ ret = $ this ->exec ($ this ->uri ."/ $ projectIdOrKey/statuses " , null );
93
93
$ json = json_decode ($ ret );
@@ -103,11 +103,11 @@ public function getStatuses(int|string $projectIdOrKey) : array
103
103
*
104
104
* @param int|string $projectIdOrKey
105
105
*
106
- * @return \JiraRestApi\Component\Component[]
107
106
*@throws \JiraRestApi\JiraException
108
107
*
108
+ * @return \JiraRestApi\Component\Component[]
109
109
*/
110
- public function getProjectComponents (int |string $ projectIdOrKey ) : array
110
+ public function getProjectComponents (int |string $ projectIdOrKey ): array
111
111
{
112
112
$ ret = $ this ->exec ($ this ->uri ."/ $ projectIdOrKey/components " , null );
113
113
$ json = json_decode ($ ret );
@@ -123,12 +123,12 @@ public function getProjectComponents(int|string $projectIdOrKey) : array
123
123
*
124
124
* @param int|string $projectIdOrKey
125
125
*
126
- * @return array
127
- * @return array
128
126
*@throws JiraException
129
127
*
128
+ * @return array
129
+ * @return array
130
130
*/
131
- public function getProjectTransitionsToArray (int |string $ projectIdOrKey ) : array
131
+ public function getProjectTransitionsToArray (int |string $ projectIdOrKey ): array
132
132
{
133
133
$ ret = $ this ->exec ($ this ->uri ."/ $ projectIdOrKey/statuses " , null );
134
134
$ json = json_decode ($ ret );
@@ -157,7 +157,7 @@ public function getProjectTransitionsToArray(int|string $projectIdOrKey) : array
157
157
*
158
158
* @return ProjectType[]
159
159
*/
160
- public function getProjectTypes () : array
160
+ public function getProjectTypes (): array
161
161
{
162
162
$ ret = $ this ->exec ($ this ->uri .'/type ' );
163
163
@@ -174,12 +174,12 @@ public function getProjectTypes() : array
174
174
/**
175
175
* @param int|string $key
176
176
*
177
- * @return ProjectType
178
177
*@throws \JsonMapper_Exception
179
- *
180
178
* @throws \JiraRestApi\JiraException
179
+ *
180
+ * @return ProjectType
181
181
*/
182
- public function getProjectType (int |string $ key ) : ProjectType
182
+ public function getProjectType (int |string $ key ): ProjectType
183
183
{
184
184
$ ret = $ this ->exec ($ this ->uri ."/type/ $ key " );
185
185
@@ -196,12 +196,12 @@ public function getProjectType(int|string $key) : ProjectType
196
196
/**
197
197
* @param int|string $key
198
198
*
199
- * @return ProjectType
200
199
*@throws \JsonMapper_Exception
201
- *
202
200
* @throws \JiraRestApi\JiraException
201
+ *
202
+ * @return ProjectType
203
203
*/
204
- public function getAccessibleProjectType (int |string $ key ) : ProjectType
204
+ public function getAccessibleProjectType (int |string $ key ): ProjectType
205
205
{
206
206
$ ret = $ this ->exec ($ this ->uri ."/type/ $ key/accessible " );
207
207
@@ -219,13 +219,13 @@ public function getAccessibleProjectType(int|string $key) : ProjectType
219
219
* get pagenated Project versions.
220
220
*
221
221
* @param int|string $projectIdOrKey
222
- * @param array $queryParam
222
+ * @param array $queryParam
223
223
*
224
- * @return Version[] array of version
225
224
*@throws \JiraRestApi\JiraException
226
225
*
226
+ * @return Version[] array of version
227
227
*/
228
- public function getVersionsPagenated (int |string $ projectIdOrKey , array $ queryParam = []) : array
228
+ public function getVersionsPagenated (int |string $ projectIdOrKey , array $ queryParam = []): array
229
229
{
230
230
$ default = [
231
231
'startAt ' => 0 ,
@@ -277,13 +277,13 @@ public function getVersions(string $projectIdOrKey): \ArrayObject
277
277
* get specified's project version.
278
278
*
279
279
* @param int|string $projectIdOrKey
280
- * @param string $versionName
280
+ * @param string $versionName
281
281
*
282
- * @return Version version
283
282
*@throws \JiraRestApi\JiraException
284
283
*
284
+ * @return Version version
285
285
*/
286
- public function getVersion (int |string $ projectIdOrKey , string $ versionName ) : Version
286
+ public function getVersion (int |string $ projectIdOrKey , string $ versionName ): Version
287
287
{
288
288
$ ret = $ this ->exec ($ this ->uri ."/ $ projectIdOrKey/versions " );
289
289
@@ -309,12 +309,11 @@ public function getVersion(int|string $projectIdOrKey, string $versionName) : Ve
309
309
*
310
310
* @param Project $project
311
311
*
312
- * @return Project project
313
- *
314
312
* @throws JiraException
315
313
*
314
+ * @return Project project
316
315
*/
317
- public function createProject (Project $ project ) : Project
316
+ public function createProject (Project $ project ): Project
318
317
{
319
318
$ data = json_encode ($ project );
320
319
@@ -336,12 +335,12 @@ public function createProject(Project $project) : Project
336
335
*
337
336
* @param Project $project
338
337
*
339
- * @return Project
340
338
*@throws \JsonMapper_Exception
341
- *
342
339
* @throws JiraException
340
+ *
341
+ * @return Project
343
342
*/
344
- public function updateProject (Project $ project , string |int $ projectIdOrKey ) : Project
343
+ public function updateProject (Project $ project , string |int $ projectIdOrKey ): Project
345
344
{
346
345
$ data = json_encode ($ project );
347
346
@@ -358,16 +357,16 @@ public function updateProject(Project $project, string|int $projectIdOrKey) : Pr
358
357
/**
359
358
* @param int|string $projectIdOrKey
360
359
*
360
+ *@throws JiraException
361
+ *
361
362
* @return string response status
362
363
*
363
364
* STATUS 401 Returned if the user is not logged in.
364
365
* STATUS 204 - application/json Returned if the project is successfully deleted.
365
366
* STATUS 403 - Returned if the currently authenticated user does not have permission to delete the project.
366
367
* STATUS 404 - Returned if the project does not exist.
367
- *@throws JiraException
368
- *
369
368
*/
370
- public function deleteProject (int |string $ projectIdOrKey ) : string
369
+ public function deleteProject (int |string $ projectIdOrKey ): string
371
370
{
372
371
$ ret = $ this ->exec ($ this ->uri .'/ ' .$ projectIdOrKey , null , 'DELETE ' );
373
372
@@ -379,17 +378,17 @@ public function deleteProject(int|string $projectIdOrKey) : string
379
378
*
380
379
* @param int|string $projectIdOrKey
381
380
*
381
+ *@throws JiraException
382
+ *
382
383
* @return string response status
383
384
*
384
385
* STATUS 401 Returned if the user is not logged in.
385
386
* STATUS 204 - application/json Returned if the project is successfully archived.
386
387
* STATUS 403 - Returned if the currently authenticated user does not have permission to archive the project.
387
388
* STATUS 404 - Returned if the project does not exist.
388
389
* STATUS 405 - Method not allowed specified request HTTP method was received and recognized by the server, but is not supported by the target resource.
389
- *@throws JiraException
390
- *
391
390
*/
392
- public function archiveProject (int |string $ projectIdOrKey ) : string
391
+ public function archiveProject (int |string $ projectIdOrKey ): string
393
392
{
394
393
$ ret = $ this ->exec ($ this ->uri .'/ ' .$ projectIdOrKey .'/archive ' , null , 'PUT ' );
395
394
0 commit comments