| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class Token implements TokenInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var array The token data. |
||
| 17 | */ |
||
| 18 | protected $data = []; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Constructs the token. |
||
| 22 | * |
||
| 23 | * @param array $data The token payload data. |
||
| 24 | */ |
||
| 25 | public function __construct(array $data) |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @inheritDoc |
||
| 32 | */ |
||
| 33 | public function get(string $name) |
||
| 34 | { |
||
| 35 | return $this->data[$name] ?? null; |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @inheritDoc |
||
| 40 | */ |
||
| 41 | public function jsonSerialize(): array |
||
| 44 | } |
||
| 45 | } |
||
| 46 |