Skip to content

Commit 1fe769e

Browse files
committed
Fixes #242
1 parent 2f39f74 commit 1fe769e

File tree

1 file changed

+13
-26
lines changed

1 file changed

+13
-26
lines changed

src/Storage/FluentAccessToken.php

Lines changed: 13 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@
2020
class FluentAccessToken extends FluentAdapter implements AccessTokenInterface
2121
{
2222
/**
23-
* Get an instance of Entities\AccessToken
24-
* @param string $token The access token
25-
* @return null|AbstractTokenEntity
26-
*/
23+
* {@inheritdoc}
24+
*/
2725
public function get($token)
2826
{
2927
$result = $this->getConnection()->table('oauth_access_tokens')
@@ -40,11 +38,9 @@ public function get($token)
4038
}
4139

4240
/**
43-
* Get the scopes for an access token
44-
* @param \League\OAuth2\Server\Entity\AbstractTokenEntity $token The access token
45-
* @return array Array of \League\OAuth2\Server\Entity\ScopeEntity
46-
*/
47-
public function getScopes(AbstractTokenEntity $token)
41+
* {@inheritdoc}
42+
*/
43+
public function getScopes(AccessTokenEntity $token)
4844
{
4945
$result = $this->getConnection()->table('oauth_access_token_scopes')
5046
->select('oauth_scopes.*')
@@ -65,12 +61,8 @@ public function getScopes(AbstractTokenEntity $token)
6561
}
6662

6763
/**
68-
* Creates a new access token
69-
* @param string $token The access token
70-
* @param integer $expireTime The expire time expressed as a unix timestamp
71-
* @param string|integer $sessionId The session ID
72-
* @return \League\OAuth2\Server\Entity\AccessTokenEntity
73-
*/
64+
* {@inheritdoc}
65+
*/
7466
public function create($token, $expireTime, $sessionId)
7567
{
7668
$this->getConnection()->table('oauth_access_tokens')->insert([
@@ -87,12 +79,9 @@ public function create($token, $expireTime, $sessionId)
8779
}
8880

8981
/**
90-
* Associate a scope with an access token
91-
* @param \League\OAuth2\Server\Entity\AbstractTokenEntity $token The access token
92-
* @param \League\OAuth2\Server\Entity\ScopeEntity $scope The scope
93-
* @return void
94-
*/
95-
public function associateScope(AbstractTokenEntity $token, ScopeEntity $scope)
82+
* {@inheritdoc}
83+
*/
84+
public function associateScope(AccessTokenEntity $token, ScopeEntity $scope)
9685
{
9786
$this->getConnection()->table('oauth_access_token_scopes')->insert([
9887
'access_token_id' => $token->getId(),
@@ -103,11 +92,9 @@ public function associateScope(AbstractTokenEntity $token, ScopeEntity $scope)
10392
}
10493

10594
/**
106-
* Delete an access token
107-
* @param \League\OAuth2\Server\Entity\AbstractTokenEntity $token The access token to delete
108-
* @return void
109-
*/
110-
public function delete(AbstractTokenEntity $token)
95+
* {@inheritdoc}
96+
*/
97+
public function delete(AccessTokenEntity $token)
11198
{
11299
$this->getConnection()->table('oauth_access_tokens')
113100
->where('oauth_access_tokens.id', $token->getId())

0 commit comments

Comments
 (0)