ApiHistogram/ApiHistogramBundle/Cleaners/YahooStockCleaner.php
public function clean(Response $response)
    {
        $body = $response->json();
        $resources = $body["list"]["resources"];

        $cleaned = array_pop($resources);

        return $cleaned;
    }
public function clean(Response $response)
    {
        $body = $response->json();
        $resources = $body["list"]["resources"];

        $cleaned = array_pop($resources);

        return $cleaned;
    }
public function clean ( Response $ response ) { $ body = $ response -> json ( ) ; $ resources = $ body [ "list" ] [ "resources" ] ; $ cleaned = array_pop ( $ resources ) ; return $ cleaned ; }
This method process the response data to remove all unnecessary fields in the response
@param $response
@return mixed
This method process the response data to remove all unnecessary fields in the response