public function getContent()
    {
        try {
            if ($this->response) {
                if (isset($this->response['content'])) {
                    return $this->response['content'];
                } else {
                    return $this->response;
                }
            }
        }
        catch (Exception $e) {
            $message = 'Error File: ' . $e->getFile() . ' - Line: ' . $e->getLine() . ' - Code: ' . $e->getCode() . ' - Message: ' . $e->getMessage();
            $this->debug->error(__FUNCTION__, $message);

            return $message;
        }

        return NULL;
    }
public function getContent()
    {
        try {
            if ($this->response) {
                if (isset($this->response['content'])) {
                    return $this->response['content'];
                } else {
                    return $this->response;
                }
            }
        }
        catch (Exception $e) {
            $message = 'Error File: ' . $e->getFile() . ' - Line: ' . $e->getLine() . ' - Code: ' . $e->getCode() . ' - Message: ' . $e->getMessage();
            $this->debug->error(__FUNCTION__, $message);

            return $message;
        }

        return NULL;
    }
public function getContent ( ) { try { if ( $ this -> response ) { if ( isset ( $ this -> response [ 'content' ] ) ) { return $ this -> response [ 'content' ] ; } else { return $ this -> response ; } } } catch ( Exception $ e ) { $ message = 'Error File: ' . $ e -> getFile ( ) . ' - Line: ' . $ e -> getLine ( ) . ' - Code: ' . $ e -> getCode ( ) . ' - Message: ' . $ e -> getMessage ( ) ; $ this -> debug -> error ( __FUNCTION__ , $ message ) ; return $ message ; } return NULL ; }
Function getContent - Get Body Content from Request

@author: 713uk13m <dev@nguyenanhung.com>
@time  : 10/7/18 02:08

@return array|mixed|string Return Response content if exists
Full Response content if $this->response['content'] not exists
Exception Error Message if Exception Error
Null if Not
Function getContent - Get Body Content from Request