PHP Class Eris\Generator\FrequencyGenerator

Inheritance: implements Eris\Generator
Mostrar archivo Open project: giorgiosironi/eris

Public Methods

Method Description
__construct ( array $generatorsWithFrequency )
__invoke ( $size, $rand )
contains ( GeneratedValue $element )
shrink ( GeneratedValue $element )

Private Methods

Method Description
ensureIsFrequency ( $frequency )
frequenciesFrom ( $generators )
pickFrom ( $generators, $rand ) : array

Method Details

__construct() public method

public __construct ( array $generatorsWithFrequency )
$generatorsWithFrequency array

__invoke() public method

public __invoke ( $size, $rand )

contains() public method

public contains ( GeneratedValue $element )
$element GeneratedValue

shrink() public method

public shrink ( GeneratedValue $element )
$element GeneratedValue