Documentation

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|null

getEmail()

Get email address.

public getEmail() : string|null
Return values
string|null

getEmailVerified()

Get email_verified attribute.

public getEmailVerified() : bool|null
Return values
bool|null

getFirstName()

Get preferred first name.

public getFirstName() : string|null
Return values
string|null

getHostedDomain()

Get hosted domain.

public getHostedDomain() : string|null
Return values
string|null

getId()

Returns the identifier of the authorized resource owner.

public getId() : mixed

getLastName()

Get preferred last name.

public getLastName() : string|null
Return values
string|null

getLocale()

Get locale.

public getLocale() : string|null
Return values
string|null

getName()

Get preferred display name.

public getName() : string
Return values
string

toArray()

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

        
On this page

Search results