summaryrefslogtreecommitdiff
path: root/server/vendor/php-opencloud/common/src/Common/Auth/Token.php
blob: 642ea46296f6007bf53be6bebb98e83475ac7d62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php declare(strict_types=1);

namespace OpenCloud\Common\Auth;

interface Token
{
    public function getId(): string;

    /**
     * Indicates whether the token has expired or not.
     *
     * @return bool TRUE if the token has expired, FALSE if it is still valid
     */
    public function hasExpired(): bool;
}