3.3.50. Stubs

3.3.50.1. Stubs

Stubs produces a skeleton from the source code, with all defined structures : constants, functions, classes, interfaces, traits and namespaces.

Stubs takes the original code, and export all defined structures (constants, functions, classes, interfaces, traits and namespaces) in a single and compilable PHP file.

This is convenient for tools that requires documentations for completion, such as IDE.

Constants are exported with their values, properties too. Methods hold their full signature.

The resulting report is in one file, called stubs.php.

Example of a Stubs report (0)

3.3.50.2. Specs

Short name

Stubs

Rulesets

Stubs doesn’t depend on rulesets.

Type

PHP

Target

This report is written in ‘stubs.php’.

Available in

Entreprise Edition