public function outputContent(Response $response) { if ($response->getBody()) { echo $response->getBody(); } else { echo $response->getData(); } }
public function outputContent(Response $response) { if ($response->getBody()) { echo $response->getBody(); } else { if (!is_string($response->getData())) { print_r($response->getData()); } else { echo $response->getData(); } } }