PHP Class Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Parser\FunctionFixtureReferenceParser

Inheritance: implements Nelmio\Alice\FixtureBuilder\ExpressionLanguage\ParserInterface, use trait Nelmio\Alice\IsAServiceTrait
Show file Open project: nelmio/alice Class Usage Examples

Public Methods

Method Description
__construct ( Nelmio\Alice\FixtureBuilder\ExpressionLanguage\ParserInterface $parser )
parse ( string $value ) Uses the decorated parser to parse the value and then walk through the list of values to look for fixtures references followed by a function call (caused by e.g. "@user0") to correct the value and make it one fixture reference instead (i.e. add the function as part of the fixture reference).

Private Methods

Method Description
mergeFunctionFixtureReferences ( array $values, $value ) : array

Method Details

__construct() public method

public __construct ( Nelmio\Alice\FixtureBuilder\ExpressionLanguage\ParserInterface $parser )
$parser Nelmio\Alice\FixtureBuilder\ExpressionLanguage\ParserInterface

parse() public method

public parse ( string $value )
$value string