mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-27 23:40:22 +05:30
33 lines
678 B
PHP
33 lines
678 B
PHP
<?php
|
|
|
|
namespace OAuth2\Storage;
|
|
|
|
interface ScopeInterface
|
|
{
|
|
/**
|
|
* Return information about a scope
|
|
*
|
|
* Example SQL query:
|
|
*
|
|
* <code>
|
|
* SELECT * FROM scopes WHERE scope = $scope
|
|
* </code>
|
|
*
|
|
* Response:
|
|
*
|
|
* <code>
|
|
* Array
|
|
* (
|
|
* [id] => (int) The scope's ID
|
|
* [scope] => (string) The scope itself
|
|
* [name] => (string) The scope's name
|
|
* [description] => (string) The scope's description
|
|
* )
|
|
* </code>
|
|
*
|
|
* @param string $scope The scope
|
|
* @return bool|array If the scope doesn't exist return false
|
|
*/
|
|
public function getScope($scope);
|
|
}
|