1.2.13. Abstract Class Usage

This rule lists of all abstract classes defined. Abstract classes cannot be instanciated, and must be extended to be used.

<?php

abstract class foo {
    function foobar();
}

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

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

See also Classes abstraction.

1.2.13.1. Connex PHP features

1.2.13.1.1. Specs

Short name

Classes/Abstractclass

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