src/Issue/IssueTypeService.php 1 location
|
@@ 14-23 (lines=10) @@
|
| 11 |
|
/** |
| 12 |
|
* @return mixed |
| 13 |
|
*/ |
| 14 |
|
public function getAllIssuetypes() |
| 15 |
|
{ |
| 16 |
|
$result = $this->exec($this->uri); |
| 17 |
|
|
| 18 |
|
return $this->extractErrors($result, [200], function () use ($result) { |
| 19 |
|
return $this->json_mapper->mapArray( |
| 20 |
|
$result->getRawData(), new \ArrayObject(), '\JiraRestApi\Issue\IssueType' |
| 21 |
|
); |
| 22 |
|
}); |
| 23 |
|
} |
| 24 |
|
|
| 25 |
|
/** |
| 26 |
|
* @param $issuetypeId |
src/Project/ProjectService.php 1 location
|
@@ 16-25 (lines=10) @@
|
| 13 |
|
* get all project list. |
| 14 |
|
* @return bool|mixed |
| 15 |
|
*/ |
| 16 |
|
public function getAllProjects() |
| 17 |
|
{ |
| 18 |
|
$result = $this->exec($this->uri, ['expand' => $this->expand]); |
| 19 |
|
|
| 20 |
|
return $this->extractErrors($result, [200], function () use ($result) { |
| 21 |
|
return $this->json_mapper->mapArray( |
| 22 |
|
$result->getRawData(), new \ArrayObject(), '\JiraRestApi\Project\Project' |
| 23 |
|
); |
| 24 |
|
}); |
| 25 |
|
} |
| 26 |
|
|
| 27 |
|
/** |
| 28 |
|
* @param $projectIdOrKey |
src/Webhook/WebhookService.php 1 location
|
@@ 21-30 (lines=10) @@
|
| 18 |
|
* get all project list. |
| 19 |
|
* @return bool|mixed |
| 20 |
|
*/ |
| 21 |
|
public function getAllWebhooks() |
| 22 |
|
{ |
| 23 |
|
$result = $this->exec($this->uri); |
| 24 |
|
|
| 25 |
|
return $this->extractErrors($result, [200], function () use ($result) { |
| 26 |
|
return $this->json_mapper->mapArray( |
| 27 |
|
$result->getRawData(), new \ArrayObject(), '\JiraRestApi\Webhook\Webhook' |
| 28 |
|
); |
| 29 |
|
}); |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
/** |
| 33 |
|
* @param $webhookId |