PHP 클래스 Aerys\Ticker

상속: implements aerys\ServerObserver, use trait Struct
파일 보기 프로젝트 열기: amphp/aerys

공개 프로퍼티들

프로퍼티 타입 설명
$currentHttpDate
$currentTime

공개 메소드들

메소드 설명
__construct ( Psr\Log\LoggerInterface $logger )
update ( Server $server ) : Promise
updateTime ( ) : void Updates the context with the current time
use ( callable $useCallback ) : void Add a callback to invoke each time the time context updates

비공개 메소드들

메소드 설명
tryUseCallback ( callable $useCallback )

메소드 상세

__construct() 공개 메소드

public __construct ( Psr\Log\LoggerInterface $logger )
$logger Psr\Log\LoggerInterface

update() 공개 메소드

public update ( Server $server ) : Promise
$server Server
리턴 Promise

updateTime() 공개 메소드

Updates the context with the current time
public updateTime ( ) : void
리턴 void

use() 공개 메소드

Callbacks are invoked with two parameters: currentTime and currentHttpDate.
public use ( callable $useCallback ) : void
$useCallback callable
리턴 void

프로퍼티 상세

$currentHttpDate 공개적으로 프로퍼티

public $currentHttpDate

$currentTime 공개적으로 프로퍼티

public $currentTime