for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\Test\Support\Clock;
use DateTimeImmutable;
use Psr\Clock\ClockInterface;
final class StaticClock implements ClockInterface
{
public function __construct(
private DateTimeImmutable $now,
) {
}
public function now(): DateTimeImmutable
return $this->now;