4.2.38. Rename Interface¶
Rename an interface into another one.
The rename applies the new name to the class, and its usage : static constants, types, extends and instanceof.
4.2.38.1. Before¶
<?php
interface i {}
function foo(i $a) : j {}
?>
4.2.38.2. After¶
<?php
class j {}
function foo(j $a) : j {}
?>
4.2.38.3. Parameters¶
Name |
Default |
Type |
Description |
origin |
string |
The class to rename |
|
destination |
string |
The destination’s class name |
4.2.38.4. Reverse Cobbler¶
4.2.38.5. Specs¶
Short Name |
Interfaces/RenameInterface |
Exakat version |
2.5.0 |
Available in |