Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | protected function fillSearchTree(): void |
||
14 | { |
||
15 | if ('ok' !== $this->document['status']) { |
||
16 | throw new UnparseableApiException(); |
||
17 | } |
||
18 | |||
19 | if (empty($this->document['message']['items'])) { |
||
20 | throw new UnparseableApiException(); |
||
21 | } |
||
22 | |||
23 | $this->searchTree = $this->document['message']['items'][0]; |
||
24 | } |
||
43 |