public function setContentType($content_type) { $this->content_type = $content_type; return $this; }
/** * Mint a new Object instance with a json encoded string * * @param mixed $data * * @return $this */ public function buildJsonObject($data) { $this->object = new RObject(); $this->object->setData($data); $this->object->setContentType(Http::CONTENT_TYPE_JSON); return $this; }