protected function setJsopBody($value, $key = ":diff", $type = null) { if ($type) { $this->jsopBody[$key] = array($value, $type); } else { if (!isset($this->jsopBody[$key])) { $this->jsopBody[$key] = ""; } else { $this->jsopBody[$key] .= "\r"; } $this->jsopBody[$key] .= $value; } }