Total Complexity | 4 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class EutilsEsearch extends Extractor implements ProvidesIdentifiersData |
||
8 | { |
||
9 | /** |
||
10 | * Extract search tree from document. |
||
11 | * |
||
12 | * @throws UnparseableApiException |
||
13 | */ |
||
14 | protected function fillSearchTree(): void |
||
15 | { |
||
16 | if ($this->document['esearchresult']['count'] !== '1') { |
||
17 | throw new UnparseableApiException(); |
||
18 | } |
||
19 | |||
20 | $this->searchTree = $this->document['esearchresult']; |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * Extract and format data needed for the Identifiers Relationship |
||
25 | * on the Publication Model. |
||
26 | */ |
||
27 | public function extractIdentifiersData(): void |
||
33 | ]; |
||
34 | } |
||
37 |