PHP Class Eris\Generator\NamesGenerator

Inheritance: implements Eris\Generator
Show file Open project: giorgiosironi/eris Class Usage Examples

Public Methods

Method Description
__construct ( array $list )
__invoke ( $size, $rand )
contains ( GeneratedValue $value )
defaultDataSet ( )
shrink ( GeneratedValue $value )

Private Methods

Method Description
distancesBy ( $value, array $candidateNames )
filterDataSet ( callable $predicate )
lengthLessThanOrEqualTo ( $size )
lengthSlightlyLessThan ( $size )
minimumDistanceName ( $distances )

Method Details

__construct() public method

public __construct ( array $list )
$list array

__invoke() public method

public __invoke ( $size, $rand )

contains() public method

public contains ( GeneratedValue $value )
$value GeneratedValue

defaultDataSet() public static method

public static defaultDataSet ( )

shrink() public method

public shrink ( GeneratedValue $value )
$value GeneratedValue