Change Signature Dialog
Refactor | Change Signature
Use the Change Signature dialog to perform the Change Signature refactoring in the PHP context.
Use the available controls to make changes to the function signature. Specify how the function calls should be handled. Optionally, select the calling functions that the added parameters and exceptions (if any) should be propagated to.
Click Refactor to perform the refactoring right away. Click Preview to see the potential changes prior to actually performing the refactoring. (These will be shown in the Find tool window.)
|Visibility||Select the method visibility scope (access level modifier) from the list.|
|Name||Use this field to modify the function name.|
|Parameters||See the description of the Parameters area.|
|Signature Preview||In this area, the current function signature is shown. (The information in this area is synchronized with the changes you are making to the function signature.)|
Use the Parameters area to manage the function parameters.
The available controls let you add new parameters, remove the existing ones, reorder the parameters and also propagate new parameters to the calling functions (see the descriptions that follow).
In addition to that, you can change the names of the existing parameters.
To start editing a parameter, just click it. Alternatively, use the Up and Down arrow keys to move to the parameter of interest and Enter to start modifying it.