Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Token::getValue PHP Method

getValue() public method

public getValue ( ) : string
return string
    public function getValue() : string
    {
        return $this->value;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Parses expressions such as '$username'.
  *
  * {@inheritdoc}
  *
  * @throws ParseException
  */
 public function parse(Token $token)
 {
     try {
         return new VariableValue(substr($token->getValue(), 1));
     } catch (\TypeError $error) {
         throw ExpressionLanguageExceptionFactory::createForUnparsableToken($token, 0, $error);
     }
 }
All Usage Examples Of Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Token::getValue