1 | <?php |
||
21 | class JsExpression extends BaseObject |
||
22 | { |
||
23 | /** |
||
24 | * @var string the JavaScript expression represented by this object |
||
25 | */ |
||
26 | public $expression; |
||
27 | |||
28 | |||
29 | /** |
||
30 | * Constructor. |
||
31 | * @param string $expression the JavaScript expression represented by this object |
||
32 | * @param array $config additional configurations for this object |
||
33 | */ |
||
34 | 2 | public function __construct($expression, $config = []) |
|
39 | |||
40 | /** |
||
41 | * The PHP magic function converting an object into a string. |
||
42 | * @return string the JavaScript expression. |
||
43 | */ |
||
44 | public function __toString() |
||
48 | } |
||
49 |