PHP Class Eris\Generator\GeneratedValue

Immutable object, modifiers return a new GeneratedValue instance.
显示文件 Open project: giorgiosironi/eris Class Usage Examples

Public Methods

Method Description
__toString ( )
derivedIn ( string $generatorName ) : GeneratedValue
fromJustValue ( T $value, string $generatorName = null ) : GeneratedValue Input will be copied from value.
fromValueAndInput ( T $value, GeneratedValue | mixed $input, string $generatorName = null ) : GeneratedValue A value and the input that was used to derive it.
input ( ) : GeneratedValue | mixed
map ( callable $applyToValue, $generatorName ) : GeneratedValue
unbox ( ) : T

Private Methods

Method Description
__construct ( $value, $input, $generatorName, array $annotations = [] )

Method Details

__toString() public method

public __toString ( )

derivedIn() public method

public derivedIn ( string $generatorName ) : GeneratedValue
$generatorName string 'tuple', 'vector'
return GeneratedValue

fromJustValue() public static method

Input will be copied from value.
public static fromJustValue ( T $value, string $generatorName = null ) : GeneratedValue
$value T
$generatorName string 'tuple'
return GeneratedValue

fromValueAndInput() public static method

The input usually comes from another Generator.
public static fromValueAndInput ( T $value, GeneratedValue | mixed $input, string $generatorName = null ) : GeneratedValue
$value T
$input GeneratedValue | mixed
$generatorName string 'tuple'
return GeneratedValue

input() public method

public input ( ) : GeneratedValue | mixed
return GeneratedValue | mixed

map() public method

public map ( callable $applyToValue, $generatorName ) : GeneratedValue
$applyToValue callable
return GeneratedValue

unbox() public method

public unbox ( ) : T
return T