JFIF x x C C " } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w !1AQ aq"2B #3Rbr{
File "Uid.php"
Full Path: /home/palsarh/web/palsarh.in/public_html/vendor/kreait/firebase-php/src/Firebase/Value/Uid.php
File size: 683 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
declare(strict_types=1);
namespace Kreait\Firebase\Value;
use Kreait\Firebase\Exception\InvalidArgumentException;
use Stringable;
use function mb_strlen;
/**
* @internal
*/
final class Uid
{
/**
* @var non-empty-string
*/
public readonly string $value;
private function __construct(string $value)
{
if ($value === '' || mb_strlen($value) > 128) {
throw new InvalidArgumentException('A uid must be a non-empty string with at most 128 characters.');
}
$this->value = $value;
}
public static function fromString(Stringable|string $value): self
{
return new self((string) $value);
}
}