Navigation | Overlay |
---|---|
t Navigate files | h Toggle hits |
y Change url to tip of branch | m Toggle misses |
b / v Jump to prev/next hit line | p Toggle partial |
z / x Jump to prev/next missed or partial line | 1..9 Toggle flags |
shift + o Open current page in GitHub | a Toggle all on |
/ or ? Show keyboard shortcuts dialog | c Toggle context lines or commits |
1 |
<?php
|
|
2 |
|
|
3 |
declare(strict_types=1); |
|
4 |
|
|
5 |
namespace Kreait\Firebase\Messaging; |
|
6 |
|
|
7 |
final class RegistrationToken implements \JsonSerializable |
|
8 |
{
|
|
9 |
/** @var string */
|
|
10 |
private $value; |
|
11 |
|
|
12 | 12 |
private function __construct(string $value) |
13 |
{
|
|
14 | 12 |
$this->value = $value; |
15 |
}
|
|
16 |
|
|
17 | 12 |
public static function fromValue(string $value): self |
18 |
{
|
|
19 | 12 |
return new self($value); |
20 |
}
|
|
21 |
|
|
22 | 12 |
public function value(): string |
23 |
{
|
|
24 | 12 |
return $this->value; |
25 |
}
|
|
26 |
|
|
27 | 12 |
public function __toString(): string |
28 |
{
|
|
29 | 12 |
return $this->value; |
30 |
}
|
|
31 |
|
|
32 | 9 |
public function jsonSerialize(): string |
33 |
{
|
|
34 | 9 |
return $this->value; |
35 |
}
|
|
36 |
}
|
Read our documentation on viewing source code .