Example
| Before | After |
|---|---|
|
|
- Open the desired class in the editor.
- On the main menu, or on the context menu of the editor, choose .
- In the Extract Module dialog box, provide the following information:
- Name of the new module.
- Target directory where it will be stored.
- Context (instance or static) to form the new module.
- Methods to be included in the new module. Note that static methods are disabled for the instance context, and vice versa.
- Click OK. The new module is created in the specified directory, and the source class is updated accordingly:
- require statement is added.
- Extracted code is replaced with the reference to the new module.

