You are here

OAuth2Manager.php in Social Auth 8

File

src/AuthManager/OAuth2Manager.php
View source
<?php

namespace Drupal\social_auth\AuthManager;


/**
 * Defines a basic OAuth2Manager.
 *
 * @package Drupal\social_auth
 */
abstract class OAuth2Manager implements OAuth2ManagerInterface {

  /**
   * The service client.
   *
   * @var mixed
   */
  protected $client;

  /**
   * Access token for OAuth2 authentication.
   *
   * @var mixed
   */
  protected $accessToken;

  /**
   * {@inheritdoc}
   */
  public function setClient($client) {
    $this->client = $client;
    return $this;
  }

  /**
   * {@inheritdoc}
   */
  public function getClient() {
    return $this->client;
  }

  /**
   * {@inheritdoc}
   */
  public function getAccessToken() {
    return $this->accessToken;
  }

  /**
   * {@inheritdoc}
   */
  public function setAccessToken($access_token) {
    $this->accessToken = $access_token;
    return $this;
  }

}

Classes

Namesort descending Description
OAuth2Manager Defines a basic OAuth2Manager.