You are here

AccessTokenResourceInterface.php in Simple OAuth (OAuth2) & OpenID Connect 8

File

src/AccessTokenResourceInterface.php
View source
<?php

namespace Drupal\simple_oauth;

use Drupal\Core\Config\Entity\ConfigEntityInterface;

/**
 * Provides an interface for defining Access Token Resource entities.
 */
interface AccessTokenResourceInterface extends ConfigEntityInterface {

  /**
   * Get the description.
   *
   * @return string
   *   The description
   */
  public function getDescription();

  /**
   * Set the description.
   *
   * @param string $description
   *   The description
   */
  public function setDescription($description);

  /**
   * Checks if the entity is locked against changes.
   *
   * @return bool
   */
  public function isLocked();

  /**
   * Locks the entity.
   */
  public function lock();

  /**
   * Unlocks the entity.
   */
  public function unlock();

}

Interfaces

Namesort descending Description
AccessTokenResourceInterface Provides an interface for defining Access Token Resource entities.