GoogleUserInfo
Immutable DTO with user info returned by Google OAuth.
GoogleUserInfo::__construct()
public function __construct(string $id, string $email, string $name, ?string $picture = null):Parameters
| Name | Type | Description |
|---|---|---|
| $id | string | |
string | ||
| $name | string | |
| $picture | ?string |
GoogleUserInfo::toArray()
public function toArray(): arrayConvert to a plain array using Google's userinfo endpoint field names.