{ return implode("\r\n", $this->traceLog); } public function __toString() { $sb = ""; $sb .= "\terrorCode:"; $sb .= $this->errorCode; $sb .= "\n\terrorMessage:"; $sb .= $this->errorMessage; $sb .= "\n\tdata:"; $sb .= $this->data; return $sb; } } GSResponse::Init(); /** * Used for passing parameters when issueing requests e.g. GSRequest.send * As well as returning response data e.g. GSResponse.getData * @version 1.0 */ class GSObject { private $map; /* PUBLIC INTERFACE */ /** * Construct a GSObject from json string, throws excpetion. * @param json the json formatted string * @throws Exception if unable to parse json */ public function __construct($json = null)