type = $type; $this->id = $id; $this->token = $token; $this->token['type'] = $type; } public function getType(): string { return $this->type; } public function getId(): string { return $this->id; } public function get(string $key): string { return $this->token[$key] ?? ''; } /** @return string[] */ public function getTokenData(): array { return $this->token; } }