Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
56 | protected function _navigate(array $layout) { |
||
57 | |||
58 | $response = Ajax::createResponse(['navigate' => true]); |
||
59 | |||
60 | # Set language |
||
61 | |||
62 | $response->language = Extend\Languages::data('iso'); |
||
|
|||
63 | |||
64 | # Set title |
||
65 | |||
66 | $response->title = $this->getTitle(); |
||
67 | |||
68 | # Set layout |
||
69 | |||
70 | $response->layout = $layout; |
||
71 | |||
72 | # ------------------------ |
||
73 | |||
74 | Ajax::output($response); |
||
75 | } |
||
76 | |||
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.