for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Guzzle transport for yii2-hiart
*
* @link https://github.com/hiqdev/yii2-hiart-guzzle
* @package yii2-hiart-guzzle
* @license BSD-3-Clause
* @copyright Copyright (c) 2017, HiQDev (http://hiqdev.com/)
*/
namespace hiqdev\hiart\guzzle;
use Psr\Http\Message\ResponseInterface as Worker;
* Guzzle response implementation.
* @author Andrii Vasyliev <[email protected]>
class Response extends \hiqdev\hiart\proxy\Response
{
* @var Worker
protected $worker;
* @var string
protected $rawData;
public function getRawData()
if ($this->rawData === null) {
$this->rawData = $this->worker->getBody()->getContents();
}
return $this-rawData;
public function __call($name, $args)
return call_user_func_array([$this->worker, $name], $args);