_connection = $config['connection']; } public function get() { $response = $this->_connection->doRequest('GET', '/'); if ($response->getResponseCode() == 200) { return $response->getBody(); } else { // do some sort of error handling } } } ?>