Eris\Generator\IntegerGenerator::__construct PHP Method

__construct() public method

public __construct ( callable $mapFn = null )
$mapFn callable
    public function __construct(callable $mapFn = null)
    {
        if (is_null($mapFn)) {
            $this->mapFn = $this->identity();
        } else {
            $this->mapFn = $mapFn;
        }
    }