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 ConstantNode extends Node
23 public function __construct($value)
27 array('value' => $value)
31 public function compile(Compiler $compiler)
33 $compiler->repr($this->attributes['value']);
36 public function evaluate($functions, $values)
38 return $this->attributes['value'];