PHP Class Nelmio\Alice\Definition\Property

Mostrar archivo Open project: nelmio/alice Class Usage Examples

Public Methods

Method Description
__construct ( string $name, Nelmio\Alice\Definition\ValueInterface | mixed $value )
getName ( ) : string
getValue ( ) : Nelmio\Alice\Definition\ValueInterface | mixed
withValue ( $value ) : self param ValueInterface|mixed $value

Method Details

__construct() public method

public __construct ( string $name, Nelmio\Alice\Definition\ValueInterface | mixed $value )
$name string Fixture property name, e.g. 'username' (no flags expected)
$value Nelmio\Alice\Definition\ValueInterface | mixed

getName() public method

public getName ( ) : string
return string

getValue() public method

public getValue ( ) : Nelmio\Alice\Definition\ValueInterface | mixed
return Nelmio\Alice\Definition\ValueInterface | mixed

withValue() public method

param ValueInterface|mixed $value
public withValue ( $value ) : self
return self