Flow PHP

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
DateTimeImmutable

set()

public set(DateTimeImmutable $dateTime) : void
Parameters
$dateTime : DateTimeImmutable

        
On this page

Search results