ParsedExpression.php 735 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\ExpressionLanguage;
  11. use Symfony\Component\ExpressionLanguage\Node\Node;
  12. /**
  13. * Represents an already parsed expression.
  14. *
  15. * @author Fabien Potencier <fabien@symfony.com>
  16. */
  17. class ParsedExpression extends Expression
  18. {
  19. private $nodes;
  20. public function __construct(string $expression, Node $nodes)
  21. {
  22. parent::__construct($expression);
  23. $this->nodes = $nodes;
  24. }
  25. public function getNodes()
  26. {
  27. return $this->nodes;
  28. }
  29. }