File "RegistrationToken.php"
Full path: /home/orbitecv/orbite-school.orbit.et/vendor/kreait/firebase-php/src/Firebase/Messaging/RegistrationToken.php
File size: 816 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Edit Back
<?php
declare(strict_types=1);
namespace Kreait\Firebase\Messaging;
use JsonSerializable;
use Stringable;
final class RegistrationToken implements JsonSerializable, Stringable
{
/**
* @param non-empty-string $value
*/
private function __construct(private readonly string $value)
{
}
/**
* @return non-empty-string
*/
public function __toString(): string
{
return $this->value;
}
/**
* @param non-empty-string $value
*/
public static function fromValue(string $value): self
{
return new self($value);
}
/**
* @return non-empty-string
*/
public function value(): string
{
return $this->value;
}
public function jsonSerialize(): string
{
return $this->value;
}
}