Environment
in package
implements
EnvironmentInterface
Table of Contents
Interfaces
Constants
- HEADER_REPLAY = 'replay'
- HEADER_TICK_TIME = 'tickTime'
Properties
- $isReplaying : bool
- $tickTime : CarbonInterface
Methods
- __construct() : mixed
- Environment constructor.
- isReplaying() : bool
- now() : DateTimeInterface
- update() : void
Constants
HEADER_REPLAY
private
string
HEADER_REPLAY
= 'replay'
HEADER_TICK_TIME
private
string
HEADER_TICK_TIME
= 'tickTime'
Properties
$isReplaying
protected
bool
$isReplaying
= false
$tickTime
protected
CarbonInterface
$tickTime
Methods
__construct()
Environment constructor.
public
__construct() : mixed
isReplaying()
public
isReplaying() : bool
Return values
boolnow()
public
now() : DateTimeInterface
Return values
DateTimeInterfaceupdate()
public
update(array<string|int, mixed> $headers) : void
Parameters
- $headers : array<string|int, mixed>