Extract Method Dialog
The title of the dialog may change to Extract Function:
In the PHP context, when the code selection is made inside a function or a script.
In this field, specify the name of the function or method to be generated on the basis of the selected source code.
| In this area, specify the visibility scope of the method to be generated. The available options are: |
This area is available only in the Extract Method dialog when refactoring is invoked from a method of a PHP class.
|Select this checkbox to have a static method created. |
Declare functional expression
|Select this checkbox to have the new function defined through a function expression, for example, |
This read-only field displays the name of the variable through which the output of the new method/function will be passed to the calling method/function. Depending on your choice in the Return output variable(s) through area, this variable either will be used in a return statement or will be declared as the passed by reference parameter of the new method/function.
Return output variable(s) through
|In this area, specify the way in which the new method or function will return the output variables to the callee. |
|In this area, specify the parameters to be passed to the new method/function. If necessary, rename the parameters by double-clicking the corresponding parameter lines and entering new names.|
Use these buttons to change the order of the parameters.
Replace tail "break/continue" statements with return statements
In this read-only field, view the declaration of the new method.