VirtualClock
in package
implements
ClockInterface
FinalYes
Tags
Table of Contents
Interfaces
- ClockInterface
Methods
- __construct() : mixed
- advance() : void
- now() : DateTimeImmutable
- set() : void
Methods
__construct()
public
__construct([DateTimeImmutable|null $start = null ]) : mixed
Parameters
- $start : DateTimeImmutable|null = null
advance()
public
advance(Duration $duration) : void
Parameters
- $duration : Duration
now()
public
now() : DateTimeImmutable
Return values
DateTimeImmutableset()
public
set(DateTimeImmutable $time) : void
Parameters
- $time : DateTimeImmutable