mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
New entities, traits and interfaces
This commit is contained in:
42
src/Entities/Interfaces/ClientEntityInterface.php
Normal file
42
src/Entities/Interfaces/ClientEntityInterface.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
namespace League\OAuth2\Server\Entities\Interfaces;
|
||||
|
||||
interface ClientEntityInterface
|
||||
{
|
||||
/**
|
||||
* Get the client's identifier
|
||||
* @return string
|
||||
*/
|
||||
public function getIdentifier();
|
||||
|
||||
/**
|
||||
* Set the client's identifier
|
||||
* @param $identifier
|
||||
*/
|
||||
public function setIdentifier($identifier);
|
||||
|
||||
/**
|
||||
* Get the client's secret
|
||||
* @return string
|
||||
*/
|
||||
public function getSecret();
|
||||
|
||||
/**
|
||||
* Set the client's secret
|
||||
* @param string $secret
|
||||
* @return string
|
||||
*/
|
||||
public function setSecret($secret);
|
||||
|
||||
/**
|
||||
* Get the client's name
|
||||
* @return string
|
||||
*/
|
||||
public function getName();
|
||||
|
||||
/**
|
||||
* Set the client's name
|
||||
* @param string $name
|
||||
*/
|
||||
public function setName($name);
|
||||
}
|
||||
Reference in New Issue
Block a user