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;
15 * Represents an expression.
17 * @author Fabien Potencier <fabien@symfony.com>
21 protected $expression;
26 * @param string $expression An expression
28 public function __construct($expression)
30 $this->expression = (string) $expression;
34 * Gets the expression.
36 * @return string The expression
38 public function __toString()
40 return $this->expression;