TimeProvider

Time provider for better control time operations with time frezing future.
Methods Summary
public static
# get( )
public
# now( )
Returns current time or frozen time when is defined
public
# freezeTime( null|int $now = NULL )
Sets const time, now() call will return 'frozen' time
public
# unfreezeTime( )
Unfrezze time, now() call will return current time
public
public
Properties Summary
protected int|null $frozenTime
# NULL