| Server IP : 85.158.181.41 / Your IP : 216.73.217.12 Web Server : Apache System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64 User : moncbefd ( 1024) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/moncbefd/www.moneta.at/vendor/gambio-hub/hubpublic/src/ValueObjects/ |
Upload File : |
<?php
namespace HubPublic\ValueObjects;
/**
* Class HttpResponse
*
* @package HubPublic\ValueObjects
*/
class HttpResponse
{
/**
* @var int
*/
private $statusCode;
/**
* @var array
*/
private $headers;
/**
* @var string
*/
private $body;
/**
* CurlResponse constructor.
*
* @param int $statusCode The response status code.
* @param string $body The response body.
*/
public function __construct($statusCode, array $headers, $body)
{
$this->statusCode = $statusCode;
$this->headers = $headers;
$this->body = $body;
}
/**
* Returns the HTTP status code of the cURL response.
*
* @return int
*/
public function getStatusCode()
{
return $this->statusCode;
}
/**
* Returns the HTTP headers of the cURL response.
*
* @return array
*/
public function getHeaders()
{
return $this->headers;
}
/**
* Returns the body content of the cURL response.
*
* @return string
*/
public function getBody()
{
return $this->body;
}
}