SocialLogin
    
            
            in package
            
        
    
    
    
AbstractYes
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.
 
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
    abstract        static        getLoginType() : string
    Return values
stringgetLoginUrl()
Returns the URL to authenticate with the social platform.
    public
    abstract                getLoginUrl() : string
    Return values
stringlogin()
Authenticates with the social platform.
    public
    abstract                login() : SocialIdentity
    Return values
SocialIdentitygetRedirectUrl()
Returns the URL that the social platform will redirect to after authentication.
    protected
                    getRedirectUrl() : string