4.2.13. Remove A Method In A Class

This removes a method in a class. The method name is provided with its fully qualified name : Name of the class:: name of the method.

The method’s name is a string.

4.2.13.1. Before

<?php

// removing method \x::method1
class x {
    function method1() {}
    function method2() {}
}

?>

4.2.13.2. After

<?php

// removed method \x::method1
class x {
    function method2() {}
}

?>

4.2.13.3. Parameters

Name

Default

Type

Description

name

x::method1

string

Fully qualified name of the method to remove. Only one allowed.

4.2.13.4. Specs

Short Name

Classes/RemoveMethod

Exakat version

2.3.0

Available in

Entreprise Edition, Exakat Cloud