PhpStorm
 
Get PhpStorm

Move Class Dialog

Last modified: 10 September 2024

The dialog opens when you place the caret at the name of the class in the editor and invoke the refactoring.

PhpStorm assumes that the namespaces in your project are arranged in compliance with the PSR-0/PSR-4 standard and enforces you to retain the folder structure and the namespace hierarchy in accordance with this standard when moving classes among namespaces.

When you specify a namespace to move a class to, PhpStorm automatically updates the Target Destination Directory field, which shows the path to the folder where the file that implements the class in question will be stored.