for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Katapoka\Ahgora;
/**
* Class for the Http responses
*/
class HttpResponse
{
/** @var int The http response status code */
public $httpStatus;
/** @var string The response body */
public $body;
public function __construct(array $data = [])
foreach ($data as $key => $value) {
if (property_exists($this, $key)) {
$this->$key = $value;
}