, body: string, timeout: int}> */ public array $captured = []; /** @var array{statusCode: int, response: string|null, error: string|null} */ public array $response = ['statusCode' => 200, 'response' => 'OK', 'error' => null]; protected function dispatch(string $method, string $url, array $headers, string $body, int $timeout): array { $this->captured[] = [ 'method' => $method, 'url' => $url, 'headers' => $headers, 'body' => $body, 'timeout' => $timeout, ]; return $this->response; } }