for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Tgallice\Wit;
use Psr\Http\Message\ResponseInterface;
trait ResponseHandler
{
/**
* @param ResponseInterface $response
*
* @return mixed
*/
public function decodeResponse(ResponseInterface $response)
return json_decode((string) $response->getBody(), true);
}