���Root Mod By V1rus_Alfa
User / IP
:
216.73.217.78
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
repositories
/
portal-cutunix
/
vendor
/
lcobucci
/
clock
/
src
/
Viewing: FrozenClock.php
<?php declare(strict_types=1); namespace Lcobucci\Clock; use DateMalformedStringException; use DateTimeImmutable; use DateTimeZone; use InvalidArgumentException; 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; } /** * Adjusts the current time by a given modifier. * * @param string $modifier @see https://www.php.net/manual/en/datetime.formats.php * * @throws InvalidArgumentException When an invalid format string is passed (PHP < 8.3). * @throws DateMalformedStringException When an invalid date/time string is passed (PHP 8.3+). */ public function adjustTime(string $modifier): void { $modifiedTime = @$this->now->modify($modifier); // PHP < 8.3 won't throw exceptions on invalid modifiers if ($modifiedTime === false) { throw new InvalidArgumentException('The given modifier is invalid'); } $this->now = $modifiedTime; } public function now(): DateTimeImmutable { return $this->now; } }
Coded With 💗 by
0x6ick Mod By V1rus_Alfa