Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2declare( strict_types = 1 );
3
4namespace Wikimedia\Parsoid\Ext;
5
6/**
7 * A Parsoid native extension module.  This bundles up the configuration
8 * for a number of different ExtensionTagHandlers, ContentModelHandlers,
9 * and DomProcessors into one registered object.  The only method required
10 * is `getConfig`.
11 *
12 * FIXME: This might be created on-demand by configuration data specified
13 * in extension.json.
14 */
15interface ExtensionModule {
16
17    /**
18     * Return information about this extension module.
19     * FIXME: Add more expected fields or create a class for this
20     * FIXME: The 'name' is expected to be the same as the name defined
21     * at the top level of extension.json.
22     * @return array{name:string}
23     */
24    public function getConfig(): array;
25
26}