FakeClock implements ClockInterface
FinalYes
Interfaces
- ClockInterface
Methods
- __construct() : mixed
- modify() : void
- now() : DateTimeImmutable
- set() : void
Methods
__construct()
public
__construct([DateTimeImmutable $dateTime = new DateTimeImmutable('now') ]) : mixed
Parameters
- $dateTime : DateTimeImmutable = new DateTimeImmutable('now')
modify()
public
modify(string $modify) : void
Parameters
- $modify : string
now()
public
now() : DateTimeImmutable
Return values
DateTimeImmutableset()
public
set(DateTimeImmutable $dateTime) : void
Parameters
- $dateTime : DateTimeImmutable