src/Response.php
public function getResponse($printResponse = true)
    {
        $this->setStatusInfo();
        if ($printResponse) {
            header('Content-Type: application/json');
            echo $this->ResponseData;
        } else {
            return $this->ResponseData;
        }
        return null;
    }
public function getResponse($printResponse = true)
    {
        $this->setStatusInfo();
        if ($printResponse) {
            header('Content-Type: application/json');
            echo $this->ResponseData;
        } else {
            return $this->ResponseData;
        }
        return null;
    }
public function getResponse ( $ printResponse = true ) { $ this -> setStatusInfo ( ) ; if ( $ printResponse ) { header ( 'Content-Type: application/json' ) ; echo $ this -> ResponseData ; } else { return $ this -> ResponseData ; } return null ; }
Print or return ResponseData

@param boolean $printResponse
@return array|null
Print or return ResponseData