Yaffs site version 1.1
[yaffs-website] / vendor / symfony / expression-language / ParsedExpression.php
1 <?php
2
3 /*
4  * This file is part of the Symfony package.
5  *
6  * (c) Fabien Potencier <fabien@symfony.com>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 namespace Symfony\Component\ExpressionLanguage;
13
14 use Symfony\Component\ExpressionLanguage\Node\Node;
15
16 /**
17  * Represents an already parsed expression.
18  *
19  * @author Fabien Potencier <fabien@symfony.com>
20  */
21 class ParsedExpression extends Expression
22 {
23     private $nodes;
24
25     /**
26      * Constructor.
27      *
28      * @param string $expression An expression
29      * @param Node   $nodes      A Node representing the expression
30      */
31     public function __construct($expression, Node $nodes)
32     {
33         parent::__construct($expression);
34
35         $this->nodes = $nodes;
36     }
37
38     public function getNodes()
39     {
40         return $this->nodes;
41     }
42 }