4.2.28. Rename A Function

Give a function with a new name.

This cobbler doesn’t update the name of the functioncalls.

This cobbler may be used with functions, and methods. Functions may be identified with their fully qualified name (i.e. pathfoo) and methods with the extended fully qualified name (i.e. : pathaClass::methodName).

4.2.28.1. Before

<?php
    function foo() {

    }
?>

4.2.28.2. After

<?php
    function bar() {

    }
?>

4.2.28.3. Parameters

Name

Default

Type

Description

name

foo

string

The new name of the function.

4.2.28.4. Suggested Analysis

  • No anchor for Utils/Selector

4.2.28.6. Reverse Cobbler

  • This cobbler is its own reverse.

4.2.28.7. Specs

Short Name

Structures/RenameFunction

Exakat version

2.3.0

Available in

Entreprise Edition, Exakat Cloud