| 1 | <?php |
||
| 11 | class MockSessionStorage extends MockStorage implements SessionInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @inheritdoc |
||
| 15 | */ |
||
| 16 | public function getByAccessToken(AccessTokenEntity $entity) |
||
| 17 | { |
||
| 18 | $entity = new SessionEntity($this->server); |
||
| 19 | |||
| 20 | $entity->setId('test'); |
||
| 21 | $entity->setOwner('test', 'test'); |
||
| 22 | |||
| 23 | return $entity; |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @inheritdoc |
||
| 28 | */ |
||
| 29 | public function getByAuthCode(AuthCodeEntity $authCode) |
||
| 30 | { |
||
| 31 | throw new \Exception('Not implemented'); |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @inheritdoc |
||
| 36 | */ |
||
| 37 | public function getScopes(SessionEntity $session) |
||
| 38 | { |
||
| 39 | throw new \Exception('Not implemented'); |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @inheritdoc |
||
| 44 | */ |
||
| 45 | public function create($ownerType, $ownerId, $clientId, $clientRedirectUri = null) |
||
| 46 | { |
||
| 47 | return 1; |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @inheritdoc |
||
| 52 | */ |
||
| 53 | public function associateScope(SessionEntity $session, ScopeEntity $scope) |
||
| 54 | { |
||
| 55 | throw new \Exception('Not implemented'); |
||
| 56 | } |
||
| 57 | } |
||
| 58 |