interfaceExtensionInterface
interface ExtensionInterface
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
A named set of database calls the analyzer should recognise.
Raw APIs declare sinks and globals. Extensions implementing ModelProviderInterface additionally register source-level call transformations and statement compilers.
Methods§
public function name(): stringThe name the command line selects the extension by.
Returns
stringTest cases 2
public function description(): stringWhat the extension covers, shown in the command line help.
Returns
stringTest cases 1
public function globals(): array<string, string>The global variables the extension knows the class of.
A framework that hands its database handle out through a global leaves nothing in the source for the analyzer to read the type from, so the extension that knows the framework is what says the name stands for it.
Returns
array<string, string> Class names, keyed by the variable name written without its `$`Test cases 5§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 3
Other tests reaching this symbol 2
Relations§
Implemented by 4
- DoctrineExtension packages/sql-catalog/src/Extension/Doctrine/DoctrineExtension.php:19
- MysqliExtension packages/sql-catalog/src/Extension/Mysqli/MysqliExtension.php:18
- PdoExtension packages/sql-catalog/src/Extension/Pdo/PdoExtension.php:18
- WordPressExtension packages/sql-catalog/src/Extension/WordPress/WordPressExtension.php:25