4.2.41. Rename Property¶
Rename a property into another one.
The rename applies the new name to the property, and its usage : static calls, and normal calls.
4.2.41.1. Before¶
<?php
class x {
private $p = 1;
function m() {
$this->p = 2;
}
}
?>
4.2.41.2. After¶
<?php
class x {
private $newP = 1;
function m() {
$this->newP = 2;
}
}
?>
4.2.41.3. Parameters¶
Name |
Default |
Type |
Description |
origin |
string |
The property to rename, along with its parent class. Like theClass::$property |
|
destination |
string |
The destination’s property name. Only the name. |
4.2.41.4. Specs¶
Short Name |
Classes/RenameProperty |
Exakat version |
2.3.0 |
Available in |