%PDF- %GIF98; %PNG;
Server : ApacheSystem : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64 User : addictionfreeind ( 1003) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system Directory : /home/addictionfreeind/public_html/admin1/vendor/spatie/flare-client-php/src/Http/ |
Upload File : |
<?php
namespace Spatie\FlareClient\Http;
class Response
{
protected mixed $headers;
protected mixed $body;
protected mixed $error;
public function __construct(mixed $headers, mixed $body, mixed $error)
{
$this->headers = $headers;
$this->body = $body;
$this->error = $error;
}
public function getHeaders(): mixed
{
return $this->headers;
}
public function getBody(): mixed
{
return $this->body;
}
public function hasBody(): bool
{
return $this->body != false;
}
public function getError(): mixed
{
return $this->error;
}
public function getHttpResponseCode(): ?int
{
if (! isset($this->headers['http_code'])) {
return null;
}
return (int) $this->headers['http_code'];
}
}