PHP 클래스 spec\Tolerance\Throttling\RateLimit\LeakyBucketSpec

상속: extends PhpSpec\ObjectBehavior
파일 보기 프로젝트 열기: sroze/tolerance

공개 메소드들

메소드 설명
it_creates_and_saves_the_measure_after_a_tick_if_no_existing_measure ( Tolerance\Throttling\RateMeasureStorage\RateMeasureStorage $storage )
it_has_not_reached_the_limit_by_default ( Tolerance\Throttling\RateMeasureStorage\RateMeasureStorage $storage )
it_increments_the_number_of_ticks ( Tolerance\Throttling\RateMeasureStorage\RateMeasureStorage $storage, Tolerance\Throttling\RateMeasure\RateMeasure $measure, Tolerance\Throttling\Rate\Rate $rate )
it_is_a_rate_limit ( )
let ( Tolerance\Throttling\RateMeasureStorage\RateMeasureStorage $storage )

메소드 상세

it_creates_and_saves_the_measure_after_a_tick_if_no_existing_measure() 공개 메소드

public it_creates_and_saves_the_measure_after_a_tick_if_no_existing_measure ( Tolerance\Throttling\RateMeasureStorage\RateMeasureStorage $storage )
$storage Tolerance\Throttling\RateMeasureStorage\RateMeasureStorage

it_has_not_reached_the_limit_by_default() 공개 메소드

public it_has_not_reached_the_limit_by_default ( Tolerance\Throttling\RateMeasureStorage\RateMeasureStorage $storage )
$storage Tolerance\Throttling\RateMeasureStorage\RateMeasureStorage

it_increments_the_number_of_ticks() 공개 메소드

public it_increments_the_number_of_ticks ( Tolerance\Throttling\RateMeasureStorage\RateMeasureStorage $storage, Tolerance\Throttling\RateMeasure\RateMeasure $measure, Tolerance\Throttling\Rate\Rate $rate )
$storage Tolerance\Throttling\RateMeasureStorage\RateMeasureStorage
$measure Tolerance\Throttling\RateMeasure\RateMeasure
$rate Tolerance\Throttling\Rate\Rate

it_is_a_rate_limit() 공개 메소드

public it_is_a_rate_limit ( )

let() 공개 메소드

public let ( Tolerance\Throttling\RateMeasureStorage\RateMeasureStorage $storage )
$storage Tolerance\Throttling\RateMeasureStorage\RateMeasureStorage