mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-01-03 10:41:51 +05:30
Moved entity interfaces into parent folder. Fixes #504
This commit is contained in:
parent
00518dded7
commit
4eee48ca4e
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace League\OAuth2\Server\Entities\Interfaces;
|
namespace League\OAuth2\Server\Entities;
|
||||||
|
|
||||||
use League\OAuth2\Server\CryptKey;
|
use League\OAuth2\Server\CryptKey;
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace League\OAuth2\Server\Entities\Interfaces;
|
namespace League\OAuth2\Server\Entities;
|
||||||
|
|
||||||
interface AuthCodeEntityInterface extends TokenInterface
|
interface AuthCodeEntityInterface extends TokenInterface
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace League\OAuth2\Server\Entities\Interfaces;
|
namespace League\OAuth2\Server\Entities;
|
||||||
|
|
||||||
interface ClientEntityInterface
|
interface ClientEntityInterface
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace League\OAuth2\Server\Entities\Interfaces;
|
namespace League\OAuth2\Server\Entities;
|
||||||
|
|
||||||
interface RefreshTokenEntityInterface
|
interface RefreshTokenEntityInterface
|
||||||
{
|
{
|
||||||
@ -35,14 +35,14 @@ interface RefreshTokenEntityInterface
|
|||||||
/**
|
/**
|
||||||
* Set the access token that the refresh token was associated with.
|
* Set the access token that the refresh token was associated with.
|
||||||
*
|
*
|
||||||
* @param \League\OAuth2\Server\Entities\Interfaces\AccessTokenEntityInterface $accessToken
|
* @param \League\OAuth2\Server\Entities\AccessTokenEntityInterface $accessToken
|
||||||
*/
|
*/
|
||||||
public function setAccessToken(AccessTokenEntityInterface $accessToken);
|
public function setAccessToken(AccessTokenEntityInterface $accessToken);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the access token that the refresh token was originally associated with.
|
* Get the access token that the refresh token was originally associated with.
|
||||||
*
|
*
|
||||||
* @return \League\OAuth2\Server\Entities\Interfaces\AccessTokenEntityInterface
|
* @return \League\OAuth2\Server\Entities\AccessTokenEntityInterface
|
||||||
*/
|
*/
|
||||||
public function getAccessToken();
|
public function getAccessToken();
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace League\OAuth2\Server\Entities\Interfaces;
|
namespace League\OAuth2\Server\Entities;
|
||||||
|
|
||||||
interface ScopeEntityInterface extends \JsonSerializable
|
interface ScopeEntityInterface extends \JsonSerializable
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace League\OAuth2\Server\Entities\Interfaces;
|
namespace League\OAuth2\Server\Entities;
|
||||||
|
|
||||||
interface TokenInterface
|
interface TokenInterface
|
||||||
{
|
{
|
||||||
@ -56,14 +56,14 @@ interface TokenInterface
|
|||||||
/**
|
/**
|
||||||
* Set the client that the token was issued to.
|
* Set the client that the token was issued to.
|
||||||
*
|
*
|
||||||
* @param \League\OAuth2\Server\Entities\Interfaces\ClientEntityInterface $client
|
* @param \League\OAuth2\Server\Entities\ClientEntityInterface $client
|
||||||
*/
|
*/
|
||||||
public function setClient(ClientEntityInterface $client);
|
public function setClient(ClientEntityInterface $client);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Associate a scope with the token.
|
* Associate a scope with the token.
|
||||||
*
|
*
|
||||||
* @param \League\OAuth2\Server\Entities\Interfaces\ScopeEntityInterface $scope
|
* @param \League\OAuth2\Server\Entities\ScopeEntityInterface $scope
|
||||||
*/
|
*/
|
||||||
public function addScope(ScopeEntityInterface $scope);
|
public function addScope(ScopeEntityInterface $scope);
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace League\OAuth2\Server\Entities\Interfaces;
|
namespace League\OAuth2\Server\Entities;
|
||||||
|
|
||||||
interface UserEntityInterface
|
interface UserEntityInterface
|
||||||
{
|
{
|
Loading…
Reference in New Issue
Block a user