Google
extends SocialLogin
in package
Defines the methods to be implemented by each social login platform.
Table of Contents
Methods
- __construct() : mixed
- get() : self
- Returns a SocialLogin class of the given derived type.
- getLoginType() : string
- Provides the canonical name of the platform to use in string comparison.
- getLoginUrl() : string
- Returns the URL to authenticate with the social platform.
- login() : SocialIdentity
- Authenticates with the social platform.
- getRedirectUrl() : string
- Returns the URL that the social platform will redirect to after authentication.
- getGoogleObj() : Google
Methods
__construct()
public
__construct() : mixed
get()
Returns a SocialLogin class of the given derived type.
public
static get(string $loginType) : self
Parameters
- $loginType : string
Return values
selfgetLoginType()
Provides the canonical name of the platform to use in string comparison.
public
static getLoginType() : string
Return values
stringgetLoginUrl()
Returns the URL to authenticate with the social platform.
public
getLoginUrl() : string
Return values
stringlogin()
Authenticates with the social platform.
public
login() : SocialIdentity
Return values
SocialIdentitygetRedirectUrl()
Returns the URL that the social platform will redirect to after authentication.
protected
getRedirectUrl() : string
Return values
stringgetGoogleObj()
private
getGoogleObj() : Google