4.2.30. Rename A Namespace¶
Changes the name of a namespaces from A to B.
Make sure that the new namspace is distinct from the previous ones : merging namespaces is not recommended nor checked. This cobbler is better suited a giving an unused name to a namespace.
4.2.30.1. Before¶
<?php
namespace A;
function foo() {}
?>
4.2.30.2. After¶
<?php
namespace B;
function foo() {}
?>
4.2.30.3. Parameters¶
Name |
Default |
Type |
Description |
origin |
string |
The original namespace. |
|
destination |
string |
The destination namespace. |
4.2.30.4. Reverse Cobbler¶
4.2.30.5. Specs¶
Short Name |
Rename/RenameNamespace |
Exakat version |
2.6.0 |
Available in |