original_string: public function setBody($responseBody)
  	{
  		if($this->initialized !== true)
  			throw new \Exception('ResponseBuilder not initialized. Call init() first');
  		
  		// TODO make sure, this can only be a string or a BaseObject
  		// TODO throws an error when not valid JSON - how to deal with this?
  		if(gettype($responseBody) != 'string')
  			$responseBody = $responseBody->getJSONString();
  		
  		$this->sonicResponse->setBody($responseBody);
  		
  		return $this;
  	}
code: public function setBody($responseBody)
  	{
  		if($this->initialized !== true)
  			throw new \Exception('ResponseBuilder not initialized. Call init() first');
  		
  		// TODO make sure, this can only be a string or a BaseObject
  		// TODO throws an error when not valid JSON - how to deal with this?
  		if(gettype($responseBody) != 'string')
  			$responseBody = $responseBody->getJSONString();
  		
  		$this->sonicResponse->setBody($responseBody);
  		
  		return $this;
  	}
code_tokens: public function setBody ( $ responseBody ) { if ( $ this -> initialized !== true ) throw new \ Exception ( 'ResponseBuilder not initialized. Call init() first' ) ; // TODO make sure, this can only be a string or a BaseObject
   // TODO throws an error when not valid JSON - how to deal with this?
   if ( gettype ( $ responseBody ) != 'string' ) $ responseBody = $ responseBody -> getJSONString ( ) ; $ this -> sonicResponse -> setBody ( $ responseBody ) ; return $ this ; }
docstring: Sets the payload for the response. This needs to be an object that inherits from BasicObject
docstring_tokens: Sets the payload for the response . This needs to be an object that inherits from BasicObject