public function getBody()
    {
        $body = json_decode($this->response->getBody(), true);

        if (!$body) {
            throw new ResponseWithoutBody('Response without body');
        }

        if (!$this->transformer) {
            return $body;
        }

        return $this->transformer->transformData($body);
    }
public function getBody()
    {
        $body = json_decode($this->response->getBody(), true);

        if (!$body) {
            throw new ResponseWithoutBody('Response without body');
        }

        if (!$this->transformer) {
            return $body;
        }

        return $this->transformer->transformData($body);
    }
public function getBody ( ) { $ body = json_decode ( $ this -> response -> getBody ( ) , true ) ; if ( ! $ body ) { throw new ResponseWithoutBody ( 'Response without body' ) ; } if ( ! $ this -> transformer ) { return $ body ; } return $ this -> transformer -> transformData ( $ body ) ; }
Return a transformed response.

@return array
Return a transformed response .