dataTable, $token))->getValue(), true); if (!$result) { return null; } $entity = new RefreshTokenEntity($this->server); $entity->setId($result['id']); $entity->setAccessTokenId($result['access_token_id']); return $entity; } /** * @inheritdoc */ public function create($token, $expireTime, $accessToken) { $payload = [ 'id' => $token, 'access_token_id' => $accessToken, ]; (new Key($this->dataTable, $token))->setValue($payload); } /** * @inheritdoc */ public function delete(OriginalRefreshTokenEntity $token) { (new Key($this->dataTable, $token->getId()))->delete(); } }