PHP Class Eris\Generator\DateGenerator

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

Public Methods

Method Description
__construct ( DateTime $lowerLimit, DateTime $upperLimit )
__invoke ( $_size, $rand )
contains ( GeneratedValue $element )
shrink ( GeneratedValue $element )

Private Methods

Method Description
ensureIsInDomain ( $element )
fromOffset ( integer $offset ) : DateTime

Method Details

__construct() public method

public __construct ( DateTime $lowerLimit, DateTime $upperLimit )
$lowerLimit DateTime
$upperLimit DateTime

__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