HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ip-172-26-0-120 6.17.0-1009-aws #9~24.04.2-Ubuntu SMP Fri Mar 6 23:50:29 UTC 2026 x86_64
User: ubuntu (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/html/api.aianced.com/vendor/openai-php/client/src/Responses/Meta/MetaInformationCustom.php
<?php

namespace OpenAI\Responses\Meta;

final readonly class MetaInformationCustom
{
    /**
     * @param  array<string, string>  $headers
     */
    private function __construct(
        public array $headers
    ) {}

    /**
     * @param  array<string, string|null>  $headers
     */
    public static function from(array $headers): self
    {
        return new self(array_filter($headers));
    }

    /**
     * @return array<string, string>
     */
    public function toArray(): array
    {
        return $this->headers;
    }

    public function isEmpty(): bool
    {
        return $this->headers === [];
    }
}