src/Tool/HttpTrait.php
protected function processRequest(RequestInterface $request)
    {
        $response = $this->handleResponse($this->getResponse($request));

        return json_decode($response->getBody());
    }
protected function processRequest(RequestInterface $request)
    {
        $response = $this->handleResponse($this->getResponse($request));

        return json_decode($response->getBody());
    }
protected function processRequest ( RequestInterface $ request ) { $ response = $ this -> handleResponse ( $ this -> getResponse ( $ request ) ) ; return json_decode ( $ response -> getBody ( ) ) ; }
Makes a request to the Yelp API and returns the response

@param    RequestInterface $request

@return   stdClass The JSON response from the request
@throws   Stevenmaguire\Yelp\Exception\ClientConfigurationException
@throws   Stevenmaguire\Yelp\Exception\HttpException
Makes a request to the Yelp API and returns the response