public function setBody($content, $name = null)
    {
        if ((null === $name) || !is_string($name)) {
            $this->_body = array('default' => (string) $content);
        } else {
            $this->_body[$name] = (string) $content;
        }

        return $this;
    }
public function setBody($content, $name = null)
    {
        if ((null === $name) || !is_string($name)) {
            $this->_body = array('default' => (string) $content);
        } else {
            $this->_body[$name] = (string) $content;
        }

        return $this;
    }
public function setBody ( $ content , $ name = null ) { if ( ( null === $ name ) || ! is_string ( $ name ) ) { $ this -> _body = array ( 'default' => ( string ) $ content ) ; } else { $ this -> _body [ $ name ] = ( string ) $ content ; } return $ this ; }
Set body content

If $name is not passed, or is not a string, resets the entire body and
sets the 'default' key to $content.

If $name is a string, sets the named segment in the body array to
$content.

@param string $content
@param null|string $name
@return \G4\Http\Response
Set body content