PHP 인터페이스 Tolerance\Throttling\RateLimit\RateLimit

파일 보기 프로젝트 열기: sroze/tolerance 0 사용 예제들

공개 메소드들

메소드 설명
getTicksBeforeUnderLimit ( $identifier ) : float Returns the number of ticks before the limits will be available again.
hasReachedLimit ( string $identifier ) : boolean Returns true if the limit was reached.
tick ( string $identifier ) Add a tick.

메소드 상세

getTicksBeforeUnderLimit() 공개 메소드

Returns the number of ticks before the limits will be available again.
public getTicksBeforeUnderLimit ( $identifier ) : float
리턴 float

hasReachedLimit() 공개 메소드

Returns true if the limit was reached.
public hasReachedLimit ( string $identifier ) : boolean
$identifier string
리턴 boolean

tick() 공개 메소드

Add a tick.
public tick ( string $identifier )
$identifier string