1.2.14. Abstract Methods Usage

This rule lists of all abstract methods. This methods serves as template for child classes to implement.

<?php

// abstract class
abstract class foo {
    // abstract method
    function foobar();
}

class bar extends foo {
    // extended abstract method
    function foobar() {
        // doSomething()
    }

    // extra method
    function barbar() {
        // doSomething()
    }
}
?>

See also Classes abstraction.

1.2.14.1. Connex PHP features

1.2.14.1.1. Specs

Short name

Classes/Abstractmethods

Rulesets

All, Appinfo, CE, Changed Behavior

Exakat since

0.8.4

PHP Version

All

Severity

Time To Fix

Precision

Very high

Available in

Entreprise Edition, Community Edition, Exakat Cloud