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 __construct( DateTimeImmutable $now ): mixed
$now DateTimeImmutable

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

            
now() public method

public now( ): DateTimeImmutable

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