

In case the current version of PHP is 7 or higher, also the return type is added. The inserted code contains all the available type annotations. This will add the function get and set for the selected property at the end of the current class.


Generating getters and/or setters for private and protected properties can be done using the following code action. This provides the same list of code actions that should resolve the issue. The available code action is annotated with a light bulb next to the text.Īvailable code actions are listed by clicking on the light bulb or pressing an associated keyboard shortcut (by default) Ctrl+.Ĭertain errors have also Quick Fix available. The editor is provided with so-called Code Actions - Quick Fixes and refactorings for the text currently under the caret.
