Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
4 / 4 |
ParsedExpression | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
4 / 4 |
__construct | |
100.00% |
1 / 1 |
1 | |
100.00% |
3 / 3 |
|||
getNodes | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
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 | public function __construct(string $expression, Node $nodes) |
26 | { |
27 | parent::__construct($expression); |
28 | |
29 | $this->nodes = $nodes; |
30 | } |
31 | |
32 | public function getNodes() |
33 | { |
34 | return $this->nodes; |
35 | } |
36 | } |