| Total Complexity | 3 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class EutilsEfetch extends Resource |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | protected $url = 'https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var array |
||
| 16 | */ |
||
| 17 | protected $queryStringParameters = [ |
||
| 18 | 'query' => [ |
||
| 19 | 'db' => 'pubmed', |
||
| 20 | 'version' => '2.0', |
||
| 21 | 'retmode' => 'xml', |
||
| 22 | 'id' => '', |
||
| 23 | ], |
||
| 24 | ]; |
||
| 25 | 2 | ||
| 26 | /** |
||
| 27 | 2 | * @return array |
|
| 28 | 2 | */ |
|
| 29 | public function getRequestOptions(): array |
||
| 34 | } |
||
| 35 | 1 | ||
| 36 | /** |
||
| 37 | * @param string $document |
||
| 38 | * @return array |
||
| 39 | */ |
||
| 40 | public function getDataFrom(string $document): array |
||
| 52 |