| 1 | <?php |
||
| 7 | class Dir extends Filemanager\Utils\Handler { |
||
| 8 | |||
| 9 | # Handler configuration |
||
| 10 | |||
| 11 | protected static $type = FILEMANAGER_TYPE_DIR; |
||
| 12 | |||
| 13 | protected static $message_success_rename = 'FILEMANAGER_SUCCESS_DIR_RENAME'; |
||
| 14 | |||
| 15 | protected static $message_error_remove = 'FILEMANAGER_ERROR_DIR_REMOVE'; |
||
| 16 | |||
| 17 | protected static $view = 'Blocks\Filemanager\Dir'; |
||
| 18 | |||
| 19 | # Set item info |
||
| 20 | |||
| 21 | protected function processInfo(Template\Asset\Block $info) { |
||
| 33 | } |
||
| 34 | } |
||
| 35 |
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@propertyannotation 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.