Yaffs site version 1.1
[yaffs-website] / vendor / symfony / expression-language / Expression.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 /**
15  * Represents an expression.
16  *
17  * @author Fabien Potencier <fabien@symfony.com>
18  */
19 class Expression
20 {
21     protected $expression;
22
23     /**
24      * Constructor.
25      *
26      * @param string $expression An expression
27      */
28     public function __construct($expression)
29     {
30         $this->expression = (string) $expression;
31     }
32
33     /**
34      * Gets the expression.
35      *
36      * @return string The expression
37      */
38     public function __toString()
39     {
40         return $this->expression;
41     }
42 }