| 1 | <?php |
||
| 20 | class Response extends \hiqdev\hiart\proxy\Response |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var Worker |
||
| 24 | */ |
||
| 25 | protected $worker; |
||
| 26 | |||
| 27 | 2 | /** |
|
| 28 | * @var string |
||
| 29 | 2 | */ |
|
| 30 | protected rawData; |
||
|
|
|||
| 31 | |||
| 32 | public function getRawData() |
||
| 33 | { |
||
| 34 | if ($this->rawData === null) { |
||
| 35 | $this->rawData = $this->worker->getBody()->getContents(); |
||
| 36 | } |
||
| 37 | |||
| 38 | return $this-rawData; |
||
| 39 | } |
||
| 40 | |||
| 41 | public function __call($name, $args) |
||
| 42 | { |
||
| 43 | return call_user_func_array([$this->worker, $name], $args); |
||
| 44 | } |
||
| 45 | } |
||
| 46 |