4.2.39. Rename Methodcall

Rename a method, in a methodcall, with a new name.

This cobbler doesn’t update the definition of the method. It works both on static and non-static methods.

4.2.39.1. Before

<?php
    $o->method();
?>

4.2.39.2. After

<?php
    $o->newName();
?>

4.2.39.3. Parameters

Name

Default

Type

Description

origin

strtolower

string

The function name to rename. It will be use lower-cased, and as a fully qualified name.

destination

mb_strtolower

string

The function name to rename. It will be use as is. FQN is possible.

4.2.39.4. Suggested Analysis

  • No anchor for Utils/Selector

4.2.39.6. Reverse Cobbler

  • No anchor for Structures/RemoveMethodCall

4.2.39.7. Specs

Short Name

Structures/RenameMethodcall

Exakat version

2.3.0

Available in

Entreprise Edition, Exakat Cloud