1 | <?php |
||
5 | class Expression |
||
6 | { |
||
7 | /** |
||
8 | * @var string The expression |
||
9 | */ |
||
10 | private $value; |
||
11 | |||
12 | /** |
||
13 | * @param string $value The expression |
||
14 | */ |
||
15 | public function __construct($value) |
||
19 | |||
20 | /** |
||
21 | * @return string Returns the expression |
||
22 | */ |
||
23 | public function __toString() |
||
27 | |||
28 | /** |
||
29 | * @param string $value The expression |
||
30 | * |
||
31 | * @return self |
||
32 | */ |
||
33 | public static function from($value) |
||
37 | } |
||
38 |