public function getBody($format = 'object')
    {
        if (! $this->isValidBodyFormat($format)) {
            return;
        }

        $method = 'body' . ucfirst($format);

        return call_user_func_array([$this, $method], [null]);

    }
public function getBody($format = 'object')
    {
        if (! $this->isValidBodyFormat($format)) {
            return;
        }

        $method = 'body' . ucfirst($format);

        return call_user_func_array([$this, $method], [null]);

    }
public function getBody ( $ format = 'object' ) { if ( ! $ this -> isValidBodyFormat ( $ format ) ) { return ; } $ method = 'body' . ucfirst ( $ format ) ; return call_user_func_array ( [ $ this , $ method ] , [ null ] ) ; }
Returns the xml|json as string, array or object.

@return string|array|object
Returns the xml|json as string array or object .