| Total Complexity | 5 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 7 | class CrossrefUpdates extends Resource |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | protected $url = 'https://api.crossref.org/works?filter=updates:'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var array |
||
| 16 | */ |
||
| 17 | protected $queryStringParameters = [ |
||
| 18 | 'headers' => [ |
||
| 19 | 'User-Agent' => 'PubPeer/2.0 (https://pubpeer.com; mailto:[email protected])', |
||
| 20 | ], |
||
| 21 | ]; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $extractor = Extractors\CrossrefUpdates::class; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | public function getApiUrl(): string |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return array |
||
| 38 | */ |
||
| 39 | public function getRequestOptions(): array |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param string $document |
||
| 46 | * @return array |
||
| 47 | */ |
||
| 48 | public function getDataFrom(string $document): array |
||
| 65 |