oauth2-server/src/OAuth2/Storage/ScopeInterface.php

33 lines
678 B
PHP
Raw Normal View History

2012-12-29 01:42:16 +05:30
<?php
namespace OAuth2\Storage;
interface ScopeInterface
{
2013-01-29 19:55:49 +05:30
/**
* 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);
2012-12-29 01:42:16 +05:30
}