| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 47 | protected function _expr(): JsExpr |
||
| 48 | { |
||
| 49 | $xJsExpr = match($this->sJsObject) { |
||
| 50 | // An empty string returns the js "this" var. |
||
| 51 | '' => new JsExpr($this->xDialog, new Selector('js', 'this')), |
||
| 52 | // The 'w' string returns the js "window" object. No data needed. |
||
| 53 | 'w' => new JsExpr($this->xDialog), |
||
| 54 | // Otherwise, the corresponding js object will be returned. |
||
| 55 | default => new JsExpr($this->xDialog, Attr::get($this->sJsObject, false)), |
||
| 56 | }; |
||
| 57 | return $this->_initExpr($xJsExpr); |
||
| 58 | } |
||
| 60 |