JFIF x x C C " } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w !1AQ aq"2B #3Rbr{
File "RolloutValue.php"
Full Path: /home/u735268861/domains/palsarh.in/public_html/vendor/kreait/RolloutValue.php
File size: 1001 B
MIME-type: text/x-php
Charset: utf-8
<?php
declare(strict_types=1);
namespace Kreait\Firebase\RemoteConfig;
use JsonSerializable;
/**
* @phpstan-type RemoteConfigRolloutValueShape array{
* rolloutId: non-empty-string,
* value: string,
* percent: int<0, 100>
* }
*
* @see https://firebase.google.com/docs/reference/remote-config/rest/v1/RemoteConfig#rolloutvalue
*/
final class RolloutValue implements JsonSerializable
{
/**
* @param RemoteConfigRolloutValueShape $data
*/
private function __construct(private readonly array $data)
{
}
/**
* @param RemoteConfigRolloutValueShape $data
*/
public static function fromArray(array $data): self
{
return new self($data);
}
/**
* @return RemoteConfigRolloutValueShape
*/
public function toArray(): array
{
return $this->data;
}
/**
* @return RemoteConfigRolloutValueShape
*/
public function jsonSerialize(): array
{
return $this->data;
}
}