Aerys\Ticker classTicker implementsAerys\ServerObserver

Summary

Properties

Methods

Properties

$currentTime —public $currentTime
No documentation.
$currentHttpDate —public $currentHttpDate
No documentation.

Methods

__construct —public function__construct(Aerys\Logger$logger)
No documentation.
Type Parameter Description Default Value
Aerys\Logger $logger No documentation. none
update —public functionupdate(Aerys\Server$server):Amp\Promise
No documentation.
Type Parameter Description Default Value
Aerys\Server $server No documentation. none
use —public functionuse(callable$useCallback):void

Add a callback to invoke each time the time context updates

Callbacks are invoked with two parameters: currentTime and currentHttpDate.

Type Parameter Description Default Value
callable $useCallback No documentation. none
updateTime —public functionupdateTime():void

Updates the context with the current time

__get —publicfinal function__get($property)
No documentation.
Type Parameter Description Default Value
mixed $property No documentation. none
__set —publicfinal function__set($property,$value)
No documentation.
Type Parameter Description Default Value
mixed $property No documentation. none
mixed $value No documentation. none