1 | <?php |
||
12 | class Session extends AbstractStorage implements SessionInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $accessTokensDir; |
||
18 | |||
19 | /** |
||
20 | * @var string[] |
||
21 | */ |
||
22 | private $scope; |
||
23 | |||
24 | /** |
||
25 | * @param string $accessTokensDir |
||
26 | * @param string[] $scope |
||
27 | */ |
||
28 | public function __construct($accessTokensDir, array $scope) |
||
33 | |||
34 | /** |
||
35 | * {@InheritDoc} |
||
36 | */ |
||
37 | public function getByAccessToken(AccessTokenEntity $accessToken) |
||
51 | |||
52 | /** |
||
53 | * {@InheritDoc} |
||
54 | */ |
||
55 | public function getByAuthCode(AuthCodeEntity $authCode) |
||
59 | |||
60 | /** |
||
61 | * {@InheritDoc} |
||
62 | */ |
||
63 | public function getScopes(SessionEntity $session) |
||
71 | |||
72 | /** |
||
73 | * {@InheritDoc} |
||
74 | */ |
||
75 | public function create($ownerType, $ownerId, $clientId, $clientRedirectUri = null) |
||
79 | |||
80 | /** |
||
81 | * {@InheritDoc} |
||
82 | */ |
||
83 | public function associateScope(SessionEntity $session, ScopeEntity $scope) |
||
87 | } |
||
88 |