| @@ 73-85 (lines=13) @@ | ||
| 70 | * |
|
| 71 | * @throws Exception |
|
| 72 | */ |
|
| 73 | public function getUrl($method, array $params = []) |
|
| 74 | { |
|
| 75 | switch ($method) { |
|
| 76 | case 'get': |
|
| 77 | return [ |
|
| 78 | 'url' => vsprintf('/1.0/resource/journal/issue/get/%d', $params), |
|
| 79 | 'method' => 'GET', |
|
| 80 | 'code' => 200 |
|
| 81 | ]; |
|
| 82 | default: |
|
| 83 | throw new Exception('Route for ' . $method . ' not found'); |
|
| 84 | } |
|
| 85 | } |
|
| 86 | } |
|
| @@ 109-121 (lines=13) @@ | ||
| 106 | * |
|
| 107 | * @throws Exception |
|
| 108 | */ |
|
| 109 | public function getUrl($method, array $params = []) |
|
| 110 | { |
|
| 111 | switch ($method) { |
|
| 112 | case 'get': |
|
| 113 | return [ |
|
| 114 | 'url' => vsprintf('/1.0/resource/journal/get/%d', $params), |
|
| 115 | 'method' => 'GET', |
|
| 116 | 'code' => 200 |
|
| 117 | ]; |
|
| 118 | default: |
|
| 119 | throw new Exception('Route for ' . $method . ' not found'); |
|
| 120 | } |
|
| 121 | } |
|
| 122 | } |
|