4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\ExpressionLanguage\Node;
14 use Symfony\Component\ExpressionLanguage\Compiler;
17 * @author Fabien Potencier <fabien@symfony.com>
21 class NameNode extends Node
23 public function __construct($name)
27 array('name' => $name)
31 public function compile(Compiler $compiler)
33 $compiler->raw('$'.$this->attributes['name']);
36 public function evaluate($functions, $values)
38 return $values[$this->attributes['name']];