Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | private function processDebugMode(Template\Block $debug_mode) { |
||
14 | |||
15 | if (DEBUG_MODE) { |
||
16 | |||
17 | $debug_mode->class = 'red'; |
||
|
|||
18 | |||
19 | $debug_mode->text = Language::get('INFORMATION_VALUE_DEBUG_MODE_ON'); |
||
20 | |||
21 | } else { |
||
22 | |||
23 | $debug_mode->class = ''; |
||
24 | |||
25 | $debug_mode->text = Language::get('INFORMATION_VALUE_DEBUG_MODE_OFF'); |
||
26 | } |
||
27 | } |
||
28 | |||
72 |
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.