for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Copyright (c) Padosoft.com 2016.
*/
namespace Padosoft\HTTPClient;
* Class Response
* Wrap psr7 Response object wit body and status code.
* @package Padosoft\HTTPClient
class Response
{
* @var int
protected $status_code = -1;
* @var string
protected $body = '';
* @var \GuzzleHttp\Psr7\Response $psr7response
protected $psr7response;
* @param $property
* @return mixed
public function __get($property) {
if (property_exists($this, $property)) {
return $this->$property;
}
* @param $value
public function __set($property, $value) {
$this->$property = $value;