public function __construct(Response $response, string $acceptKey) { $this->response = $response; $this->acceptKey = $acceptKey; $response->setStatus($this->status); }