| Total Complexity | 3 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class IdConverter extends Resource |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var string |
||
| 9 | */ |
||
| 10 | protected $url = 'https://www.ncbi.nlm.nih.gov/pmc/utils/idconv/v1.0/'; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var array |
||
| 14 | */ |
||
| 15 | protected $queryStringParameters = [ |
||
| 16 | 'query' => [ |
||
| 17 | 'format' => 'json', |
||
| 18 | 'tool' => 'pubpeer', |
||
| 19 | 'email' => '[email protected]', |
||
| 20 | 'version' => 'no', |
||
| 21 | 'ids' => '', |
||
| 22 | ], |
||
| 23 | ]; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @return array |
||
| 27 | */ |
||
| 28 | public function getRequestOptions(): array |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param string $document |
||
| 37 | * @return array |
||
| 38 | */ |
||
| 39 | public function getDataFrom(string $document): array |
||
| 51 |