Eris\Generator\ConstantGenerator::box PHP Method

box() public static method

public static box ( $value )
    public static function box($value)
    {
        return new self($value);
    }

Usage Example

Example #1
0
/**
 * @param mixed $value  the only value to generate
 * @return ConstantGenerator
 */
function constant($value)
{
    return ConstantGenerator::box($value);
}