3 namespace Friendica\Network;
7 * A content class for Curl call results
12 * @var string the Code of the Curl call
17 * @var string the content type of the Curl call
22 * @var string the headers of the Curl call
26 public function __construct($code = '', $contentType = '', $headers = '')
29 $this->contentType = $contentType;
30 $this->headers = $headers;
36 * @param string $code The Curl Code
38 public function setCode($code)
46 * @return string The Curl Code
48 public function getCode()
54 * Sets the Curl Content Type
56 * @param string $content_type The Curl Content Type
58 public function setContentType($content_type)
60 $this->contentType = $content_type;
64 * Returns the Curl Content Type
66 * @return string the Curl Content Type
68 public function getContentType()
70 return $this->contentType;
74 * Sets the Curl headers
76 * @param string $headers the Curl headers
78 public function setHeaders($headers)
80 $this->headers = $headers;
84 * Returns the Curl headers
86 * @return string the Curl headers
88 public function getHeaders()
90 return $this->headers;