_is_ftp = $isFTP; return $this->_is_ftp; } /** * @param string $body * * @return void */ public function setBody(string $body):void { $this->_body = $body; } /** * @param string $body * * @return void */ public function appendBody(string $body):void { $this->_body .= $body; } /** * @return string */ public function getBody():string { return $this->_body; } /** * @param string $headers * * @return void */ public function setHeadersBuffer(string $headers):void { $this->_headers_buffer = $headers; } /** * @param string $headers * * @return void */ public function appendHeadersBuffer(string $headers):void { $this->_headers_buffer .= $headers; } /** * @return JetHttpResponseHeaders|null */ public function getHeaders():?JetHttpResponseHeaders { if(!$this->_headers && $this->_headers_buffer) $this->_headers = new JetHttpResponseHeaders($this->_headers_buffer, $this->_is_ftp); return $this->_headers; } }