2012-12-29 01:42:16 +05:30
|
|
|
<?php
|
2013-02-14 01:29:08 +05:30
|
|
|
/**
|
|
|
|
* OAuth 2.0 Scope storage interface
|
|
|
|
*
|
2014-01-08 21:45:29 +05:30
|
|
|
* @package league/oauth2-server
|
2013-02-14 01:29:08 +05:30
|
|
|
* @author Alex Bilbie <hello@alexbilbie.com>
|
2014-03-10 01:04:23 +05:30
|
|
|
* @copyright Copyright (c) Alex Bilbie
|
2013-02-14 01:29:08 +05:30
|
|
|
* @license http://mit-license.org/
|
2014-03-10 01:35:38 +05:30
|
|
|
* @link https://github.com/thephpleague/oauth2-server
|
2013-02-14 01:29:08 +05:30
|
|
|
*/
|
2012-12-29 01:42:16 +05:30
|
|
|
|
2013-05-09 00:12:23 +05:30
|
|
|
namespace League\OAuth2\Server\Storage;
|
2012-12-29 01:42:16 +05:30
|
|
|
|
2014-01-08 21:45:29 +05:30
|
|
|
/**
|
|
|
|
* Scope interface
|
|
|
|
*/
|
2014-11-07 08:01:37 +05:30
|
|
|
interface ScopeInterface extends StorageInterface
|
2012-12-29 01:42:16 +05:30
|
|
|
{
|
2013-01-29 19:55:49 +05:30
|
|
|
/**
|
|
|
|
* Return information about a scope
|
2014-05-03 15:23:57 +05:30
|
|
|
* @param string $scope The scope
|
|
|
|
* @param string $grantType The grant type used in the request (default = "null")
|
2014-10-01 04:25:21 +05:30
|
|
|
* @param string $clientId The client sending the request (default = "null")
|
2014-05-02 19:44:12 +05:30
|
|
|
* @return \League\OAuth2\Server\Entity\ScopeEntity
|
2013-01-29 19:55:49 +05:30
|
|
|
*/
|
2014-10-01 04:25:21 +05:30
|
|
|
public function get($scope, $grantType = null, $clientId = null);
|
2012-12-29 01:42:16 +05:30
|
|
|
}
|