1 | <?php |
||
11 | class WidgetExpression extends Expression |
||
|
|||
12 | { |
||
13 | protected $widget; |
||
14 | |||
15 | /** |
||
16 | * {@inheritdoc} |
||
17 | * |
||
18 | * @param AbstractWidget $widget instance of the widget this expression |
||
19 | * represents |
||
20 | */ |
||
21 | public function __construct($html, AbstractWidget $widget) |
||
22 | { |
||
23 | $this->widget = $widget; |
||
24 | parent::__construct($html); |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Get the instance of the widget this expression represents. |
||
29 | * |
||
30 | * @return AbstractWidget |
||
31 | */ |
||
32 | public function getWidget() |
||
36 | |||
37 | /** |
||
38 | * Call a method directly on the widget instance. |
||
39 | * |
||
40 | * @param string $method method name |
||
41 | * @param array $params |
||
42 | * |
||
43 | * @return mixed |
||
44 | */ |
||
45 | public function __call($method, array $params = []) |
||
58 | } |
||
59 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.