PHP Interface Nelmio\Alice\FixtureBuilder\ExpressionLanguage\ParserInterface

ファイルを表示 Open project: nelmio/alice Interface Usage Examples

Public Methods

Method Description
parse ( string $value ) : Nelmio\Alice\Definition\ValueInterface | string | array Parses a value, e.g. 'foo' or '$username' to determine if is a regular value (like 'foo') or is a value that must be processed (like '$username'). If the value must be processed, it will be parsed to generate a value (a ValueInterface instance) ready for processing.

Method Details

parse() public method

Parses a value, e.g. 'foo' or '$username' to determine if is a regular value (like 'foo') or is a value that must be processed (like '$username'). If the value must be processed, it will be parsed to generate a value (a ValueInterface instance) ready for processing.
public parse ( string $value ) : Nelmio\Alice\Definition\ValueInterface | string | array
$value string
return Nelmio\Alice\Definition\ValueInterface | string | array