0 follower

Final Class Yiisoft\Test\Support\Clock\StaticClock

InheritanceYiisoft\Test\Support\Clock\StaticClock
ImplementsPsr\Clock\ClockInterface

Method Details

Hide inherited methods

__construct() public method

public mixed __construct ( DateTimeImmutable $now )
$now DateTimeImmutable

                public function __construct(
    private DateTimeImmutable $now,
) {
}

            
now() public method

public DateTimeImmutable now ( )

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