/** * Send a batch request * * @access public * @return array|false */ public function send() { $this->isBatch = false; $this->client->batchSend(); if ($this->client->error) { $this->error = $this->client->error; return false; } $response = json_decode($this->client->output, true); $result = []; foreach ($response as $item) { $result[] = isset($item['result']) ? $item['result'] : $item['error']; } return $result; }