PhpStorm 9.0.0 Help

Create New Method

UML Class diagram - Context menu of a node element | New | Constructor
Alt+Insert


ItemDescription
NameUse this field to modify the method name.
Return typeUse this field to modify the method return type.

Code completion (Ctrl+Space) is available in this field, in the Type column of the Parameters area, and in the exception type list in the Exceptions area.

Parameters
TypeSpecify the parameter type.

Note that code completion works here. As you type, the suggestion list shrinks to show the matching options. Non-existent type is marked as a syntax error.

NameSpecify the parameter name.
Add/RemoveUse these buttons to add/remove parameters.
Move Up/DownUse these buttons to reorder parameters by moving them up or down in the parameter list.
VisibilitySelect one of the options to change visibility scope of the method.
AbstractIf this check box is selected, the abstract modifier is added to the method signature.
Exceptions
Add/RemoveUse these buttons to add/remove exceptions thrown by the method. For each new exception, specify its type.
Move Up/DownUse these buttons to reorder exceptions by moving them up or down in the list.
Signature PreviewThis read-only area shows the draft method signature as you fill in the dialog fields.

See Also

Last modified: 5 June 2015