GoogleUser
in package
implements
ResourceOwnerInterface
Table of Contents
Interfaces
- ResourceOwnerInterface
- Classes implementing `ResourceOwnerInterface` may be used to represent the resource owner authenticated with a service provider.
Properties
- $response : array<string|int, mixed>
Methods
- __construct() : mixed
- getAvatar() : string|null
- Get avatar image URL.
- getEmail() : string|null
- Get email address.
- getEmailVerified() : bool|null
- Get email_verified attribute.
- getFirstName() : string|null
- Get preferred first name.
- getHostedDomain() : string|null
- Get hosted domain.
- getId() : mixed
- Returns the identifier of the authorized resource owner.
- getLastName() : string|null
- Get preferred last name.
- getLocale() : string|null
- Get locale.
- getName() : string
- Get preferred display name.
- isEmailTrustworthy() : bool
- Returns whether the email is trustable enough to be used for authentication purpose.
- toArray() : array<string|int, mixed>
- Get user data as an array.
- getResponseValue() : mixed
Properties
$response
protected
array<string|int, mixed>
$response
Methods
__construct()
public
__construct(array<string|int, mixed> $response) : mixed
Parameters
- $response : array<string|int, mixed>
getAvatar()
Get avatar image URL.
public
getAvatar() : string|null
Return values
string|nullgetEmail()
Get email address.
public
getEmail() : string|null
Return values
string|nullgetEmailVerified()
Get email_verified attribute.
public
getEmailVerified() : bool|null
Return values
bool|nullgetFirstName()
Get preferred first name.
public
getFirstName() : string|null
Return values
string|nullgetHostedDomain()
Get hosted domain.
public
getHostedDomain() : string|null
Return values
string|nullgetId()
Returns the identifier of the authorized resource owner.
public
getId() : mixed
getLastName()
Get preferred last name.
public
getLastName() : string|null
Return values
string|nullgetLocale()
Get locale.
public
getLocale() : string|null
Return values
string|nullgetName()
Get preferred display name.
public
getName() : string
Return values
stringisEmailTrustworthy()
Returns whether the email is trustable enough to be used for authentication purpose.
public
isEmailTrustworthy() : bool
Tags
Return values
booltoArray()
Get user data as an array.
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>getResponseValue()
private
getResponseValue(mixed $key) : mixed
Parameters
- $key : mixed