result = $result; } public function __invoke(array $request) { \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::doSleep($request); $response = \is_callable($this->result) ? \call_user_func($this->result, $request) : $this->result; if (\is_array($response)) { $response = new \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Future\CompletedFutureArray($response + ['status' => null, 'body' => null, 'headers' => [], 'reason' => null, 'effective_url' => null]); } elseif (!$response instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Future\FutureArrayInterface) { throw new \InvalidArgumentException('Response must be an array or FutureArrayInterface. Found ' . \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::describeType($request)); } return $response; } }