Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | protected function _display(Template\Block $layout) { |
||
32 | |||
33 | $view = View::get('Main/' . $this->view); |
||
34 | |||
35 | # Set language |
||
36 | |||
37 | $view->language = Extend\Languages::data('iso'); |
||
38 | |||
39 | # Set title |
||
40 | |||
41 | $view->title = $this->getTitle(); |
||
42 | |||
43 | # Set layout |
||
44 | |||
45 | $view->layout = $layout; |
||
46 | |||
47 | # ------------------------ |
||
48 | |||
49 | Template::output($view, $this->status); |
||
50 | } |
||
51 | |||
87 |
Since your code implements the magic setter
_set
, this function will be called for any write access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.Since the property has write access only, you can use the @property-write annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.