header = $header; $this->body = $body; $this->httpCode = $httpCode; } public function setBody($body) { $this->body = $body; } public function getBody() { return $this->body; } public function setHeader($header) { $this->header = $header; } public function getHeader() { return $this->header; } public function setHttpCode($httpCode) { $this->httpCode = $httpCode; } public function getHttpCode() { return $this->httpCode; } public function assertSuccess() { PCurlException::assert($this->getHttpCode() == 200, "Request failed (" . $this->getHttpCode() . ")", array(), $this->getHttpCode()); return $this; } }