![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/medad.corals.io/vendor/kreait/firebase-php/src/Firebase/Auth/ |
<?php declare(strict_types=1); namespace Kreait\Firebase\Auth; use JsonSerializable; use function get_object_vars; class UserInfo implements JsonSerializable { public ?string $uid = null; public ?string $displayName = null; public ?string $screenName = null; public ?string $email = null; public ?string $photoUrl = null; public ?string $providerId = null; public ?string $phoneNumber = null; /** * @param array<string, string> $data */ public static function fromResponseData(array $data): self { $info = new self(); $info->uid = $data['rawId'] ?? null; $info->displayName = $data['displayName'] ?? null; $info->screenName = $data['screenName'] ?? null; $info->email = $data['email'] ?? null; $info->photoUrl = $data['photoUrl'] ?? null; $info->providerId = $data['providerId'] ?? null; $info->phoneNumber = $data['phoneNumber'] ?? null; return $info; } /** * @return array<string, string|null> */ public function jsonSerialize(): array { return get_object_vars($this); } }