PHP Class Eris\Quantifier\Size

Inheritance: implements Countabl\Countable
显示文件 Open project: giorgiosironi/eris Class Usage Examples

Public Methods

Method Description
at ( $position )
count ( )
limit ( $maximumNumber )
max ( )
withLinearGrowth ( $maximum )
withTriangleGrowth ( $maximum )

Private Methods

Method Description
__construct ( array $list )
generateList ( $maximum, callable $growth )
linearGrowth ( $n )
triangleNumber ( $n ) Growth which approximates (n^2)/2.

Method Details

at() public method

public at ( $position )

count() public method

public count ( )

limit() public method

public limit ( $maximumNumber )

max() public method

public max ( )

withLinearGrowth() public static method

public static withLinearGrowth ( $maximum )

withTriangleGrowth() public static method

public static withTriangleGrowth ( $maximum )