File "ExplicitValue.php"
Full path: /home/orbitecv/orbite-school.orbit.et/vendor/kreait/firebase-php/src/Firebase/RemoteConfig/ExplicitValue.php
File size: 778 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Edit Back
<?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;
}
}