src/Client.php
public function getLoginUrl(
        array $scope = [Scope::READ_BASIC_PROFILE, Scope::READ_EMAIL_ADDRESS]
    ) {
        $params = [
            'response_type' => self::OAUTH2_RESPONSE_TYPE,
            'client_id' => $this->getClientId(),
            'redirect_uri' => $this->getRedirectUrl(),
            'state' => $this->getState(),
            'scope' => implode(' ', $scope),
        ];
        $uri = $this->buildUrl('authorization', $params);
        return $uri;
    }
public function getLoginUrl(
        array $scope = [Scope::READ_BASIC_PROFILE, Scope::READ_EMAIL_ADDRESS]
    ) {
        $params = [
            'response_type' => self::OAUTH2_RESPONSE_TYPE,
            'client_id' => $this->getClientId(),
            'redirect_uri' => $this->getRedirectUrl(),
            'state' => $this->getState(),
            'scope' => implode(' ', $scope),
        ];
        $uri = $this->buildUrl('authorization', $params);
        return $uri;
    }
public function getLoginUrl ( array $ scope = [ Scope :: READ_BASIC_PROFILE , Scope :: READ_EMAIL_ADDRESS ] ) { $ params = [ 'response_type' => self :: OAUTH2_RESPONSE_TYPE , 'client_id' => $ this -> getClientId ( ) , 'redirect_uri' => $ this -> getRedirectUrl ( ) , 'state' => $ this -> getState ( ) , 'scope' => implode ( ' ' , $ scope ) , ] ; $ uri = $ this -> buildUrl ( 'authorization' , $ params ) ; return $ uri ; }
Retrieve URL which will be used to send User to LinkedIn
for authentication

@param array $scope Permissions that your application requires

@return string
Retrieve URL which will be used to send User to LinkedIn for authentication