404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@18.219.107.243: ~ $
<?php
declare(strict_types=1);

namespace Lcobucci\Clock;

use DateTimeImmutable;
use DateTimeZone;

final class FrozenClock implements Clock
{
    public function __construct(private DateTimeImmutable $now)
    {
    }

    public static function fromUTC(): self
    {
        return new self(new DateTimeImmutable('now', new DateTimeZone('UTC')));
    }

    public function setTo(DateTimeImmutable $now): void
    {
        $this->now = $now;
    }

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

Filemanager

Name Type Size Permission Actions
Clock.php File 202 B 0644
FrozenClock.php File 539 B 0644
SystemClock.php File 637 B 0644