b0y-101 Mini Shell


Current Path : E:/www/b-group.old/spfin/mainpay/jwt-framework/tests/Component/Checker/Stub/
File Upload :
Current File : E:/www/b-group.old/spfin/mainpay/jwt-framework/tests/Component/Checker/Stub/MockClock.php

<?php

declare(strict_types=1);

namespace Jose\Tests\Component\Checker\Stub;

use DateTimeImmutable;
use Psr\Clock\ClockInterface;

final class MockClock implements ClockInterface
{
    public function __construct(
        private readonly DateTimeImmutable $now = new DateTimeImmutable(),
    ) {
    }

    public function now(): DateTimeImmutable
    {
        return $this->now;
    }
}

Copyright © 2019 by b0y-101