PHP 8.2.30
Preview: Response.php Size: 861 B
/proc/thread-self/root/home/byroehnu/easetack.com/vendor/spatie/flare-client-php/src/Http/Response.php

<?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'];
    }
}

Directory Contents

Dirs: 1 × Files: 2

Name Size Perms Modified Actions
- drwxrwxrwx 2025-05-16 16:14:51
Edit Download
5.93 KB lrw-rw-rw- 2025-02-14 13:42:06
Edit Download
861 B lrw-rw-rw- 2025-02-14 13:42:06
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).