Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
20 | public function getAll() |
||
21 | { |
||
22 | if ($this->isRestApiV3()) { |
||
23 | throw new JiraException('V3 is currently not supported'); |
||
24 | } |
||
25 | |||
26 | else { |
||
27 | $statusObject = new Status(); |
||
|
|||
28 | } |
||
29 | |||
30 | $ret = $this->exec($this->uri.'/', null); |
||
31 | $this->log->info("Result=\n".$ret); |
||
32 | |||
33 | |||
34 | return $this->json_mapper->mapArray( |
||
35 | json_decode($ret, false), |
||
36 | new \ArrayObject(), |
||
37 | '\JiraRestApi\Status\status' |
||
38 | ); |
||
41 |