| Conditions | 4 |
| Paths | 6 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | protected function getQueryResponse($field_key, array $where_params = []) |
||
| 46 | { |
||
| 47 | if (! empty($where_params)) { |
||
| 48 | if (! array_key_exists('variables', $this->params)) { |
||
| 49 | $this->params['variables'] = []; |
||
| 50 | } |
||
| 51 | $this->params['variables']['where'] = $where_params; |
||
| 52 | } |
||
| 53 | |||
| 54 | $responseData = $this->makeGraphQLRequest($this->params); |
||
| 55 | return ! empty($responseData[ $field_key ]) ? $responseData[ $field_key ] : null; |
||
| 56 | } |
||
| 57 | |||
| 78 |