JFIF  x x C         C     "        } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz        w !1AQ aq"2B #3Rbr{ gilour

File "ExplicitValue.php"

Full Path: /home/palsarh/web/palsarh.in/public_html/vendor/kreait/firebase-php/src/Firebase/RemoteConfig/ExplicitValue.php
File size: 778 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

declare(strict_types=1);

namespace Kreait\Firebase\RemoteConfig;

use JsonSerializable;

/**
 * @deprecated 7.4.0
 *
 * @codeCoverageIgnore
 *
 * @phpstan-type RemoteConfigExplicitValueShape array{
 *     value: string
 * }
 */
final class ExplicitValue implements JsonSerializable
{
    /**
     * @param RemoteConfigExplicitValueShape $data
     */
    private function __construct(private readonly array $data)
    {
    }

    public static function fromString(string $value): self
    {
        return new self(['value' => $value]);
    }

    /**
     * @return RemoteConfigExplicitValueShape
     */
    public function toArray(): array
    {
        return $this->data;
    }

    public function jsonSerialize(): array
    {
        return $this->data;
    }
}