command; } /** * Add a response to the result. */ public function addResponse(Response $response): void { $this->responses[] = $response; } /** * Get the recently received responses. */ public function responses(): ResponseCollection { return new ResponseCollection($this->responses); } }