Aerys\Ticker class Ticker implements Aerys\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 function update(Aerys\Server $server): Amp\Promise
No documentation.
Type Parameter Description Default Value
Aerys\Server $server No documentation. none
use — public function use(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 function updateTime(): void

Updates the context with the current time

__get — public final function __get($property)
No documentation.
Type Parameter Description Default Value
mixed $property No documentation. none
__set — public final function __set($property, $value)
No documentation.
Type Parameter Description Default Value
mixed $property No documentation. none
mixed $value No documentation. none