packbackbooks/lti-1-3-php-library

View on GitHub
src/Interfaces/ICache.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

namespace Packback\Lti1p3\Interfaces;

interface ICache
{
    public function getLaunchData(string $key): ?array;

    public function cacheLaunchData(string $key, array $jwtBody): void;

    public function cacheNonce(string $nonce, string $state): void;

    public function checkNonceIsValid(string $nonce, string $state): bool;

    public function cacheAccessToken(string $key, string $accessToken): void;

    public function getAccessToken(string $key): ?string;

    public function clearAccessToken(string $key): void;
}