X

Create New Item

File Folder

X

Search Results

File "ValidAt.php"

Full path: /home/orbitecv/orbite-school.orbit.et/vendor/lcobucci/jwt/src/Validation/Constraint/ValidAt.php
File size: 599 B
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Edit   Back

<?php
declare(strict_types=1);

namespace Lcobucci\JWT\Validation\Constraint;

use DateInterval;
use Lcobucci\Clock\Clock;
use Lcobucci\JWT\Token;
use Lcobucci\JWT\Validation\Constraint;

/** @deprecated Use \Lcobucci\JWT\Validation\Constraint\LooseValidAt */
final class ValidAt implements Constraint
{
    private LooseValidAt $constraint;

    public function __construct(Clock $clock, ?DateInterval $leeway = null)
    {
        $this->constraint = new LooseValidAt($clock, $leeway);
    }

    public function assert(Token $token): void
    {
        $this->constraint->assert($token);
    }
}