Docbloc improvements

This commit is contained in:
Brooke Bryan
2014-11-12 18:10:29 +00:00
parent 8b1f3ef193
commit b2c0933ee6
22 changed files with 48 additions and 31 deletions

View File

@@ -38,10 +38,10 @@ class ResourceServer extends AbstractServer
/**
* Initialise the resource server
* @param SessionInterface $sessionStorage
* @param AccessTokenInteface $accessTokenStorage
* @param ClientInterface $clientStorage
* @param ScopeInterface $scopeStorage
* @param SessionInterface $sessionStorage
* @param AccessTokenInterface $accessTokenStorage
* @param ClientInterface $clientStorage
* @param ScopeInterface $scopeStorage
* @return self
*/
public function __construct(
@@ -65,7 +65,7 @@ class ResourceServer extends AbstractServer
/**
* Sets the query string key for the access token.
* @param $key The new query string key
* @param string $key The new query string key
* @return self
*/
public function setIdKey($key)
@@ -86,8 +86,12 @@ class ResourceServer extends AbstractServer
/**
* Checks if the access token is valid or not
* @param $headersOnly Limit Access Token to Authorization header only
* @param bool $headersOnly Limit Access Token to Authorization header only
* @param AccessTokenEntity|null $accessToken Access Token
*
* @return bool
*
* @throws
*/
public function isValidRequest($headersOnly = true, $accessToken = null)
{
@@ -114,8 +118,8 @@ class ResourceServer extends AbstractServer
/**
* Reads in the access token from the headers
* @param $headersOnly Limit Access Token to Authorization header only
* @throws Exception\MissingAccessTokenException Thrown if there is no access token presented
* @param bool $headersOnly Limit Access Token to Authorization header only
* @throws Exception\InvalidRequestException Thrown if there is no access token presented
* @return string
*/
public function determineAccessToken($headersOnly = false)